#787017#787017

#787017 is a mid, moderate yellow. Relative luminance 0.156; OKLCH L 53.6% C 0.105 H 104.0°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#787017
RGBrgb(120, 112, 23)
HSLhsl(55, 68%, 28%)
HSVhsv(55, 81%, 47%)
CMYKcmyk(0%, 6.7%, 80.8%, 52.9%)
CIE-LABlab(46.50, -7.28, 46.64)
CIE-LCHlch(46.50, 47.20, 98.88°)
OKLaboklab(53.63% -0.0253 0.1016)
OKLCHoklch(53.63% 0.105 104)
XYZxyz(13.6952, 15.6438, 3.1086)
Luminance0.1564 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787017 #171F78
analogous
#784017 #787017 #4F7817
triadic
#787017 #177870 #701778
tetradic
#787017 #177840 #171F78 #78174F
square
#787017 #177840 #171F78 #78174F
split-complementary
#787017 #174F78 #401778
monochromatic
#1A1805 #45400D #787017 #ABA021 #D8CA32

Accessibility & contrast

On white

5.09
#787017 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#787017 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #787017
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787017#FFFFFF#000000##FFFFFF
##7870171.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C02
Deuteranopia (green-blind)
#7D701E
Tritanopia (blue-blind)
#82685F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #787017;
/* rgb */ color: rgb(120, 112, 23);
/* oklch */ color: oklch(53.6% 0.105 104.0);
Tailwind
colors: {
  custom: {
    50: '#a2985d',
    500: '#787017',
    950: '#000000',
  },
}
SCSS
$custom: #787017;
$custom-light: #a2985d;
$custom-dark: #000000;
JSON
{
  "hex": "#787017",
  "rgb": {
    "r": 120,
    "g": 112,
    "b": 23
  },
  "hsl": {
    "h": 55.052,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.53634,
    "c": 0.10468,
    "h": 104
  },
  "luminance": 0.15643
}

Semantic roles & 50–950 ramp

primary
#787017
secondary
#3E47AD
accent
#4BEB3D
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#0F0D04
muted
#7F7E79

Preview Lab

Preview with #787017

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

Preview Lab → · Contrast checker → · Palette generator →

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