#787D15#787D15

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

Color values

HEX#787D15
RGBrgb(120, 125, 21)
HSLhsl(63, 71%, 29%)
HSVhsv(63, 83%, 49%)
CMYKcmyk(4%, 0%, 83.2%, 51%)
CIE-LABlab(50.35, -14.51, 50.69)
CIE-LCHlch(50.35, 52.72, 105.98°)
OKLaboklab(56.7% -0.0456 0.1099)
OKLCHoklch(56.7% 0.119 112.5)
XYZxyz(15.2152, 18.7148, 3.5201)
Luminance0.1871 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787D15 #1A157D
analogous
#7D4E15 #787D15 #447D15
triadic
#787D15 #15787D #7D1578
tetradic
#787D15 #157D4E #1A157D #7D1544
square
#787D15 #157D4E #1A157D #7D1544
split-complementary
#787D15 #15447D #4E157D
monochromatic
#191A04 #46490C #787D15 #AAB11E #D4DC30

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787D15#FFFFFF#000000##000000
##787D151.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)
#87791F
Tritanopia (blue-blind)
#81756A
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #787d15;
/* rgb */ color: rgb(120, 125, 21);
/* oklch */ color: oklch(56.7% 0.119 112.5);
Tailwind
colors: {
  custom: {
    50: '#a2a25e',
    500: '#787d15',
    950: '#000000',
  },
}
SCSS
$custom: #787d15;
$custom-light: #a2a25e;
$custom-dark: #000000;
JSON
{
  "hex": "#787d15",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 21
  },
  "hsl": {
    "h": 62.885,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.56703,
    "c": 0.11895,
    "h": 112.5
  },
  "luminance": 0.18714
}

Semantic roles & 50–950 ramp

primary
#787D15
secondary
#413CB2
accent
#3AEE42
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#0F0F05
muted
#7F7E79

Preview Lab

Preview with #787D15

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

Preview Lab → · Contrast checker → · Palette generator →

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