#787E16#787E16

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

Color values

HEX#787E16
RGBrgb(120, 126, 22)
HSLhsl(63, 70%, 29%)
HSVhsv(63, 83%, 49%)
CMYKcmyk(4.8%, 0%, 82.5%, 50.6%)
CIE-LABlab(50.66, -15.01, 50.66)
CIE-LCHlch(50.66, 52.84, 106.51°)
OKLaboklab(56.95% -0.0469 0.11)
OKLCHoklch(56.95% 0.12 113.1)
XYZxyz(15.3519, 18.9731, 3.6124)
Luminance0.1897 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787E16 #1C167E
analogous
#7E5016 #787E16 #447E16
triadic
#787E16 #16787E #7E1678
tetradic
#787E16 #167E50 #1C167E #7E1644
square
#787E16 #167E50 #1C167E #7E1644
split-complementary
#787E16 #16447E #50167E
monochromatic
#191A05 #464A0D #787E16 #AAB21F #D2DB33

Accessibility & contrast

On white

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

On black

4.79
#787E16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787E16
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787E16#FFFFFF#000000##000000
##787E161.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #787e16;
/* rgb */ color: rgb(120, 126, 22);
/* oklch */ color: oklch(56.9% 0.120 113.1);
Tailwind
colors: {
  custom: {
    50: '#a2a35e',
    500: '#787e16',
    950: '#000000',
  },
}
SCSS
$custom: #787e16;
$custom-light: #a2a35e;
$custom-dark: #000000;
JSON
{
  "hex": "#787e16",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 22
  },
  "hsl": {
    "h": 63.462,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.56948,
    "c": 0.11958,
    "h": 113.1
  },
  "luminance": 0.18973
}

Semantic roles & 50–950 ramp

primary
#787E16
secondary
#443DB3
accent
#3BED45
background
#FAFAF5
surface
#F4F3EA
border
#CECDC6
text
#0F0F05
muted
#7F7F79

Preview Lab

Preview with #787E16

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

Preview Lab → · Contrast checker → · Palette generator →

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