#787D1E#787D1E

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

Color values

HEX#787D1E
RGBrgb(120, 125, 30)
HSLhsl(63, 61%, 30%)
HSVhsv(63, 76%, 49%)
CMYKcmyk(4%, 0%, 76%, 51%)
CIE-LABlab(50.40, -14.13, 47.77)
CIE-LCHlch(50.40, 49.81, 106.47°)
OKLaboklab(56.76% -0.0438 0.1054)
OKLCHoklch(56.76% 0.114 112.6)
XYZxyz(15.3142, 18.7544, 4.0413)
Luminance0.1875 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787D1E #231E7D
analogous
#7D521E #787D1E #487D1E
triadic
#787D1E #1E787D #7D1E78
tetradic
#787D1E #1E7D52 #231E7D #7D1E48
square
#787D1E #1E7D52 #231E7D #7D1E48
split-complementary
#787D1E #1E487D #521E7D
monochromatic
#191A06 #494C12 #787D1E #A7AE2A #CAD243

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787D1E#FFFFFF#000000##000000
##787D1E1.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)
#87770A
Deuteranopia (green-blind)
#877926
Tritanopia (blue-blind)
#81756B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #787d1e;
/* rgb */ color: rgb(120, 125, 30);
/* oklch */ color: oklch(56.8% 0.114 112.6);
Tailwind
colors: {
  custom: {
    50: '#a2a262',
    500: '#787d1e',
    950: '#000000',
  },
}
SCSS
$custom: #787d1e;
$custom-light: #a2a262;
$custom-dark: #000000;
JSON
{
  "hex": "#787d1e",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 30
  },
  "hsl": {
    "h": 63.158,
    "s": 61.29,
    "l": 30.392
  },
  "oklch": {
    "l": 0.56756,
    "c": 0.11409,
    "h": 112.6
  },
  "luminance": 0.18754
}

Semantic roles & 50–950 ramp

primary
#787D1E
secondary
#4C46B0
accent
#43E44C
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F05
muted
#7F7E7A

Preview Lab

Preview with #787D1E

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

Preview Lab → · Contrast checker → · Palette generator →

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