#787F1B#787F1B

#787F1B is a mid, moderate yellow. Relative luminance 0.193; OKLCH L 57.2% C 0.118 H 113.7°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#787F1B
RGBrgb(120, 127, 27)
HSLhsl(64, 65%, 30%)
HSVhsv(64, 79%, 50%)
CMYKcmyk(5.5%, 0%, 78.7%, 50.2%)
CIE-LABlab(50.98, -15.34, 49.36)
CIE-LCHlch(50.98, 51.69, 107.26°)
OKLaboklab(57.22% -0.0474 0.1082)
OKLCHoklch(57.22% 0.118 113.7)
XYZxyz(15.5334, 19.2513, 3.9343)
Luminance0.1925 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787F1B #221B7F
analogous
#7F541B #787F1B #467F1B
triadic
#787F1B #1B787F #7F1B78
tetradic
#787F1B #1B7F54 #221B7F #7F1B46
square
#787F1B #1B7F54 #221B7F #7F1B46
split-complementary
#787F1B #1B467F #541B7F
monochromatic
#191A06 #484D10 #787F1B #A8B126 #CBD63E

Accessibility & contrast

On white

4.33
#787F1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#787F1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787F1B
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787F1B#FFFFFF#000000##000000
##787F1B1.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#897802
Deuteranopia (green-blind)
#897A24
Tritanopia (blue-blind)
#80776C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #787f1b;
/* rgb */ color: rgb(120, 127, 27);
/* oklch */ color: oklch(57.2% 0.118 113.7);
Tailwind
colors: {
  custom: {
    50: '#a2a361',
    500: '#787f1b',
    950: '#000000',
  },
}
SCSS
$custom: #787f1b;
$custom-light: #a2a361;
$custom-dark: #000000;
JSON
{
  "hex": "#787f1b",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 27
  },
  "hsl": {
    "h": 64.2,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.57216,
    "c": 0.1181,
    "h": 113.7
  },
  "luminance": 0.19251
}

Semantic roles & 50–950 ramp

primary
#787F1B
secondary
#4B43B3
accent
#40E84C
background
#FAFAF5
surface
#F4F3EA
border
#CECDC6
text
#0F0F05
muted
#7F7F79

Preview Lab

Preview with #787F1B

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

Preview Lab → · Contrast checker → · Palette generator →

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