#787D17#787D17

#787D17 is a mid, moderate yellow. Relative luminance 0.187; OKLCH L 56.7% C 0.118 H 112.6°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#787D17
RGBrgb(120, 125, 23)
HSLhsl(63, 69%, 29%)
HSVhsv(63, 82%, 49%)
CMYKcmyk(4%, 0%, 81.6%, 51%)
CIE-LABlab(50.36, -14.44, 50.10)
CIE-LCHlch(50.36, 52.13, 106.08°)
OKLaboklab(56.71% -0.0452 0.109)
OKLCHoklch(56.71% 0.118 112.6)
XYZxyz(15.2345, 18.7225, 3.6217)
Luminance0.1872 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787D17 #1C177D
analogous
#7D4F17 #787D17 #457D17
triadic
#787D17 #17787D #7D1778
tetradic
#787D17 #177D4F #1C177D #7D1745
square
#787D17 #177D4F #1C177D #7D1745
split-complementary
#787D17 #17457D #4F177D
monochromatic
#191A05 #46490D #787D17 #AAB121 #D2DA35

Accessibility & contrast

On white

4.43
#787D17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#787D17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787D17
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787D17#FFFFFF#000000##000000
##787D171.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#877700
Deuteranopia (green-blind)
#877921
Tritanopia (blue-blind)
#81756A
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #787d17;
/* rgb */ color: rgb(120, 125, 23);
/* oklch */ color: oklch(56.7% 0.118 112.6);
Tailwind
colors: {
  custom: {
    50: '#a2a25f',
    500: '#787d17',
    950: '#000000',
  },
}
SCSS
$custom: #787d17;
$custom-light: #a2a25f;
$custom-dark: #000000;
JSON
{
  "hex": "#787d17",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 23
  },
  "hsl": {
    "h": 62.941,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.56713,
    "c": 0.11799,
    "h": 112.6
  },
  "luminance": 0.18722
}

Semantic roles & 50–950 ramp

primary
#787D17
secondary
#443EB2
accent
#3CEC45
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0F05
muted
#7F7E79

Preview Lab

Preview with #787D17

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

Preview Lab → · Contrast checker → · Palette generator →

#787D17 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva