#787E1B#787E1B

#787E1B is a mid, moderate yellow. Relative luminance 0.190; OKLCH L 57.0% C 0.117 H 113.1°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#787E1B
RGBrgb(120, 126, 27)
HSLhsl(64, 65%, 30%)
HSVhsv(64, 79%, 49%)
CMYKcmyk(4.8%, 0%, 78.6%, 50.6%)
CIE-LABlab(50.68, -14.80, 49.09)
CIE-LCHlch(50.68, 51.27, 106.78°)
OKLaboklab(56.98% -0.0459 0.1076)
OKLCHoklch(56.98% 0.117 113.1)
XYZxyz(15.4049, 18.9943, 3.8915)
Luminance0.1899 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787E1B #211B7E
analogous
#7E521B #787E1B #477E1B
triadic
#787E1B #1B787E #7E1B78
tetradic
#787E1B #1B7E52 #211B7E #7E1B47
square
#787E1B #1B7E52 #211B7E #7E1B47
split-complementary
#787E1B #1B477E #521B7E
monochromatic
#181905 #484C10 #787E1B #A8B026 #CCD63E

Accessibility & contrast

On white

4.38
#787E1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#787E1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787E1B
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787E1B#FFFFFF#000000##000000
##787E1B1.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#887803
Deuteranopia (green-blind)
#887A24
Tritanopia (blue-blind)
#81766B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #787e1b;
/* rgb */ color: rgb(120, 126, 27);
/* oklch */ color: oklch(57.0% 0.117 113.1);
Tailwind
colors: {
  custom: {
    50: '#a2a360',
    500: '#787e1b',
    950: '#000000',
  },
}
SCSS
$custom: #787e1b;
$custom-light: #a2a360;
$custom-dark: #000000;
JSON
{
  "hex": "#787e1b",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 27
  },
  "hsl": {
    "h": 63.636,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.56976,
    "c": 0.11698,
    "h": 113.1
  },
  "luminance": 0.18994
}

Semantic roles & 50–950 ramp

primary
#787E1B
secondary
#4A43B2
accent
#40E84A
background
#FAFAF5
surface
#F4F3EA
border
#CECDC6
text
#0F0F05
muted
#7F7F79

Preview Lab

Preview with #787E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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