#787D1F#787D1F

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

Color values

HEX#787D1F
RGBrgb(120, 125, 31)
HSLhsl(63, 60%, 31%)
HSVhsv(63, 75%, 49%)
CMYKcmyk(4%, 0%, 75.2%, 51%)
CIE-LABlab(50.40, -14.08, 47.40)
CIE-LCHlch(50.40, 49.45, 106.54°)
OKLaboklab(56.76% -0.0435 0.1048)
OKLCHoklch(56.76% 0.113 112.6)
XYZxyz(15.3272, 18.7596, 4.1096)
Luminance0.1876 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787D1F #241F7D
analogous
#7D531F #787D1F #497D1F
triadic
#787D1F #1F787D #7D1F78
tetradic
#787D1F #1F7D53 #241F7D #7D1F49
square
#787D1F #1F7D53 #241F7D #7D1F49
split-complementary
#787D1F #1F497D #531F7D
monochromatic
#1A1B07 #494C13 #787D1F #A7AE2B #CAD145

Accessibility & contrast

On white

4.42
#787D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#787D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787D1F
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787D1F#FFFFFF#000000##000000
##787D1F1.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#87770C
Deuteranopia (green-blind)
#877927
Tritanopia (blue-blind)
#80756B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #787d1f;
/* rgb */ color: rgb(120, 125, 31);
/* oklch */ color: oklch(56.8% 0.113 112.6);
Tailwind
colors: {
  custom: {
    50: '#a2a262',
    500: '#787d1f',
    950: '#000000',
  },
}
SCSS
$custom: #787d1f;
$custom-light: #a2a262;
$custom-dark: #000000;
JSON
{
  "hex": "#787d1f",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 31
  },
  "hsl": {
    "h": 63.191,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.56762,
    "c": 0.11346,
    "h": 112.6
  },
  "luminance": 0.18759
}

Semantic roles & 50–950 ramp

primary
#787D1F
secondary
#4D48B0
accent
#44E34D
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F05
muted
#7F7E7A

Preview Lab

Preview with #787D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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