#787D24#787D24

#787D24 is a mid, moderate yellow. Relative luminance 0.188; OKLCH L 56.8% C 0.110 H 112.6°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#787D24
RGBrgb(120, 125, 36)
HSLhsl(63, 55%, 32%)
HSVhsv(63, 71%, 49%)
CMYKcmyk(4%, 0%, 71.2%, 51%)
CIE-LABlab(50.44, -13.80, 45.48)
CIE-LCHlch(50.44, 47.53, 106.88°)
OKLaboklab(56.8% -0.0422 0.1017)
OKLCHoklch(56.8% 0.11 112.6)
XYZxyz(15.3982, 18.7880, 4.4840)
Luminance0.1879 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787D24 #29247D
analogous
#7D5624 #787D24 #4C7D24
triadic
#787D24 #24787D #7D2478
tetradic
#787D24 #247D56 #29247D #7D244C
square
#787D24 #247D56 #29247D #7D244C
split-complementary
#787D24 #244C7D #56247D
monochromatic
#1D1E09 #4A4D16 #787D24 #A6AD32 #C5CC4F

Accessibility & contrast

On white

4.41
#787D24 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#787D24 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787D24
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787D24#FFFFFF#000000##000000
##787D241.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#877716
Deuteranopia (green-blind)
#87792B
Tritanopia (blue-blind)
#80756B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #787d24;
/* rgb */ color: rgb(120, 125, 36);
/* oklch */ color: oklch(56.8% 0.110 112.6);
Tailwind
colors: {
  custom: {
    50: '#a2a265',
    500: '#787d24',
    950: '#000000',
  },
}
SCSS
$custom: #787d24;
$custom-light: #a2a265;
$custom-dark: #000000;
JSON
{
  "hex": "#787d24",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 36
  },
  "hsl": {
    "h": 63.371,
    "s": 55.28,
    "l": 31.569
  },
  "oklch": {
    "l": 0.568,
    "c": 0.11008,
    "h": 112.6
  },
  "luminance": 0.18788
}

Semantic roles & 50–950 ramp

primary
#787D24
secondary
#534DAF
accent
#49DF52
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F06
muted
#7F7E7A

Preview Lab

Preview with #787D24

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

Preview Lab → · Contrast checker → · Palette generator →

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