#787417#787417

#787417 is a mid, moderate yellow. Relative luminance 0.165; OKLCH L 54.6% C 0.109 H 106.9°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#787417
RGBrgb(120, 116, 23)
HSLhsl(58, 68%, 28%)
HSVhsv(58, 81%, 47%)
CMYKcmyk(0%, 3.3%, 80.8%, 52.9%)
CIE-LABlab(47.68, -9.52, 47.70)
CIE-LCHlch(47.68, 48.64, 101.29°)
OKLaboklab(54.57% -0.0316 0.1039)
OKLCHoklch(54.57% 0.109 106.9)
XYZxyz(14.1464, 16.5462, 3.2590)
Luminance0.1655 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787417 #171B78
analogous
#784317 #787417 #4B7817
triadic
#787417 #177874 #741778
tetradic
#787417 #177843 #171B78 #78174B
square
#787417 #177843 #171B78 #78174B
split-complementary
#787417 #174B78 #431778
monochromatic
#1A1905 #45420D #787417 #ABA621 #D8D132

Accessibility & contrast

On white

4.87
#787417 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#787417 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #787417
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787417#FFFFFF#000000##FFFFFF
##7874171.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F6F00
Deuteranopia (green-blind)
#80731F
Tritanopia (blue-blind)
#816C63
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #787417;
/* rgb */ color: rgb(120, 116, 23);
/* oklch */ color: oklch(54.6% 0.109 106.9);
Tailwind
colors: {
  custom: {
    50: '#a29b5d',
    500: '#787417',
    950: '#000000',
  },
}
SCSS
$custom: #787417;
$custom-light: #a29b5d;
$custom-dark: #000000;
JSON
{
  "hex": "#787417",
  "rgb": {
    "r": 120,
    "g": 116,
    "b": 23
  },
  "hsl": {
    "h": 57.526,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.54573,
    "c": 0.10855,
    "h": 106.9
  },
  "luminance": 0.16546
}

Semantic roles & 50–950 ramp

primary
#787417
secondary
#3E42AD
accent
#44EB3D
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#0F0E05
muted
#7F7E79

Preview Lab

Preview with #787417

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#787417 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva