Skip to content

#768017

a dark, vivid yellow · warm · closest name: Olive

RGB
118, 128, 23
HSL
66°, 70%, 30%
CMYK
8, 0, 82, 50
Luminance
0.1935

At a glance

Every number on this page in one read: what #768017 is made of, how bright it looks, and which way it leans.

Hex
#768017
Hue
66°
yellow
Saturation
70%
vivid
Lightness
30%
dark
Brightness
50%
HSV value
Perceived
46%
weighted brightness
Luminance
0.1935
WCAG relative
Temperature
Warm
30/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
4.87:1
Closest name
Olive
ΔE2000 3.6
Where it sits
Hue66° of 360°
Saturation70%
Lightness30%
Temperature
Warm ← → Cool30% cool

Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#768017
RGBrgb(118, 128, 23)
HSLhsl(66, 70%, 30%)
CMYKcmyk(8%, 0%, 82%, 50%)
LABlab(51.1 -16.9 50.7)
LCHlch(51.1 53.5 108.5)
OKLCHoklch(0.573 0.122 115.3)
Decimal7766039
Display P3color(display-p3 0.463 0.502 0.090)

Copy-ready code

/* CSS */
color: #768017;
background-color: #768017;
/* Tailwind (arbitrary) */
class="text-[#768017] bg-[#768017]"
/* SCSS */
$brand: #768017;
/* SwiftUI */
Color(red: 0.463, green: 0.502, blue: 0.090)
/* Android */
Color.parseColor("#768017")
/* Flutter */
Color(0xFF768017)
/* Python / OpenCV (BGR) */
(23, 128, 118)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#000000 on #768017 · 4.87:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 4.31:1
AA fail · AA large pass · AAA fail
Aa
Black text · 4.87:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #768017 as text scores 4.31:1 on white and 4.87:1 on black.

Accessibility — WCAG contrast

Aa
#768017 on white: 4.31:1
AA ✗ fail · AA-large · AAA
Aa
#768017 on black: 4.87:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #8A7900
deuteranopia · #897A21
tritanopia · #7E786D

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #768017 is pinned to step 800; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#FBFBF3
#F6F8E7
#EEF2CA
#E6EEA0
#DAE570
#CEDD41
#BFCF25
#9FAD1F
#768017
#5D6416
#3A3F0E
Base = 800Lightest = 50 · #FBFBF3Darkest = 950 · #3A3F0E
:root {
  --brand-50: #FBFBF3;
  --brand-100: #F6F8E7;
  --brand-200: #EEF2CA;
  --brand-300: #E6EEA0;
  --brand-400: #DAE570;
  --brand-500: #CEDD41;
  --brand-600: #BFCF25;
  --brand-700: #9FAD1F;
  --brand-800: #768017;
  --brand-900: #5D6416;
  --brand-950: #3A3F0E;
  --brand: #768017;
  --brand-ink: #000000;
}

Colors that work with #768017

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#FAFAF4
Tinted page background
Border#E8EDC0
Hairlines and dividers
Muted text#939B4B
Captions on the surface
Accent#142583
Second voice, not a rival
Dark variant#646C13
Hover, pressed, headers
Light variant#F9FBE9
Selected rows, tints
Dark surface#232414
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #768017

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Headings from 24px up on white
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • Thin strokes and 1px borders — they disappear on light UI
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#211780
Analogous left#805517
Analogous right#428017
Split-complement 1#174280
Split-complement 2#551780
Triadic 1#177680
Triadic 2#801776
Tetradic#178055

RGB percentages

Red46.3%
Green50.2%
Blue9.0%

CMYK percentages

Cyan7.8%
Magenta0.0%
Yellow82.0%
Key (black)49.8%

Color previews

#768017 text on a black background

contrast 4.87:1

Card sample

#768017 text on a white background

contrast 4.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #768017;
Background color
Panel with #768017 background
background-color: #768017;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #768017;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(118, 128, 23, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(118, 128, 23, 0.45);
Border & gradient
Gradient panel
border: 3px solid #768017;
background: linear-gradient(135deg, #768017, #308017);

Monochromatic scale

Palettes built from #768017

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#768017 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
RetailLeisureEnergyWarning systems
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Converts to four-color process without much drama. Proof it anyway.

#768017, answered

What color is #768017?

#768017 is a dark vivid yellow, closest to Olive (ΔE2000 3.6). It sits at 66° on the hue wheel with 70% saturation and 30% lightness, which reads as warm.

What is the RGB value of #768017?

rgb(118, 128, 23) — 118 red, 128 green and 23 blue out of 255, or 46.3% / 50.2% / 9% by channel.

Is #768017 a light or a dark color?

It is a mid-tone. Relative luminance is 0.1935 and perceived brightness is 46%, so black text on it reaches 4.87:1.

Should I use black or white text on #768017?

Black. It scores 4.87:1 against #768017, versus 4.31:1 for white — AA at any size.

What is the complementary color of #768017?

#211780 sits directly opposite on the wheel. Softer options are the split-complements #174280 and #551780, which give the same contrast with far less vibration.

What colors go well with #768017?

For interface work: #FAFAF4 as the surface, #E8EDC0 for borders, #939B4B for secondary text, #142583 as an accent and #646C13 for hover and pressed states. For a palette, the analogous pair #805517 and #428017 stays calm, while #211780 is the loudest partner.

What is #768017 in CMYK for printing?

cmyk(8%, 0%, 82%, 50%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #768017 warm or cool?

Warm — it scores 30 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #806317; nudged cooler, #508116.

Work with #768017 in the Color Lab