#787F14#787F14

#787F14 is a mid, vivid yellow. Relative luminance 0.192; OKLCH L 57.2% C 0.122 H 113.6°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#787F14
RGBrgb(120, 127, 20)
HSLhsl(64, 73%, 29%)
HSVhsv(64, 84%, 50%)
CMYKcmyk(5.5%, 0%, 84.3%, 50.2%)
CIE-LABlab(50.95, -15.62, 51.49)
CIE-LCHlch(50.95, 53.80, 106.87°)
OKLaboklab(57.18% -0.0487 0.1114)
OKLCHoklch(57.18% 0.122 113.6)
XYZxyz(15.4619, 19.2227, 3.5575)
Luminance0.1922 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787F14 #1B147F
analogous
#7F5114 #787F14 #437F14
triadic
#787F14 #14787F #7F1478
tetradic
#787F14 #147F51 #1B147F #7F1443
square
#787F14 #147F51 #1B147F #7F1443
split-complementary
#787F14 #14437F #51147F
monochromatic
#191A04 #464A0C #787F14 #AAB41C #D3DE2F

Accessibility & contrast

On white

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

On black

4.84
#787F14 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787F14
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787F14#FFFFFF#000000##000000
##787F141.004.334.844.84
#FFFFFF4.331.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#897800
Deuteranopia (green-blind)
#897A1F
Tritanopia (blue-blind)
#81776C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #787f14;
/* rgb */ color: rgb(120, 127, 20);
/* oklch */ color: oklch(57.2% 0.122 113.6);
Tailwind
colors: {
  custom: {
    50: '#a2a35e',
    500: '#787f14',
    950: '#000000',
  },
}
SCSS
$custom: #787f14;
$custom-light: #a2a35e;
$custom-dark: #000000;
JSON
{
  "hex": "#787f14",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 20
  },
  "hsl": {
    "h": 63.925,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.57179,
    "c": 0.12159,
    "h": 113.6
  },
  "luminance": 0.19222
}

Semantic roles & 50–950 ramp

primary
#787F14
secondary
#433BB4
accent
#38EF44
background
#FAFAF5
surface
#F4F3E9
border
#CECDC5
text
#0F0F05
muted
#7F7F79

Preview Lab

Preview with #787F14

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

Preview Lab → · Contrast checker → · Palette generator →

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