#787D19#787D19

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

Color values

HEX#787D19
RGBrgb(120, 125, 25)
HSLhsl(63, 67%, 29%)
HSVhsv(63, 80%, 49%)
CMYKcmyk(4%, 0%, 80%, 51%)
CIE-LABlab(50.37, -14.36, 49.47)
CIE-LCHlch(50.37, 51.51, 106.18°)
OKLaboklab(56.72% -0.0448 0.108)
OKLCHoklch(56.72% 0.117 112.5)
XYZxyz(15.2553, 18.7309, 3.7313)
Luminance0.1873 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787D19 #1E197D
analogous
#7D5019 #787D19 #467D19
triadic
#787D19 #19787D #7D1978
tetradic
#787D19 #197D50 #1E197D #7D1946
square
#787D19 #197D50 #1E197D #7D1946
split-complementary
#787D19 #19467D #50197D
monochromatic
#181A05 #474A0F #787D19 #A9B023 #CFD739

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787D19#FFFFFF#000000##000000
##787D191.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)
#877700
Deuteranopia (green-blind)
#877922
Tritanopia (blue-blind)
#81756B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #787d19;
/* rgb */ color: rgb(120, 125, 25);
/* oklch */ color: oklch(56.7% 0.117 112.5);
Tailwind
colors: {
  custom: {
    50: '#a2a25f',
    500: '#787d19',
    950: '#000000',
  },
}
SCSS
$custom: #787d19;
$custom-light: #a2a25f;
$custom-dark: #000000;
JSON
{
  "hex": "#787d19",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 25
  },
  "hsl": {
    "h": 63,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.56724,
    "c": 0.11696,
    "h": 112.5
  },
  "luminance": 0.1873
}

Semantic roles & 50–950 ramp

primary
#787D19
secondary
#4640B1
accent
#3EEA47
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0F05
muted
#7F7E79

Preview Lab

Preview with #787D19

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

Preview Lab → · Contrast checker → · Palette generator →

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