#787F16#787F16

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

Color values

HEX#787F16
RGBrgb(120, 127, 22)
HSLhsl(64, 70%, 29%)
HSVhsv(64, 83%, 50%)
CMYKcmyk(5.5%, 0%, 82.7%, 50.2%)
CIE-LABlab(50.96, -15.54, 50.92)
CIE-LCHlch(50.96, 53.24, 106.98°)
OKLaboklab(57.19% -0.0484 0.1106)
OKLCHoklch(57.19% 0.121 113.6)
XYZxyz(15.4804, 19.2301, 3.6552)
Luminance0.1923 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787F16 #1D167F
analogous
#7F5216 #787F16 #447F16
triadic
#787F16 #16787F #7F1678
tetradic
#787F16 #167F52 #1D167F #7F1644
square
#787F16 #167F52 #1D167F #7F1644
split-complementary
#787F16 #16447F #52167F
monochromatic
#191A05 #474B0D #787F16 #A9B31F #D1DC34

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787F16#FFFFFF#000000##000000
##787F161.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)
#897800
Deuteranopia (green-blind)
#897A20
Tritanopia (blue-blind)
#81776C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #787f16;
/* rgb */ color: rgb(120, 127, 22);
/* oklch */ color: oklch(57.2% 0.121 113.6);
Tailwind
colors: {
  custom: {
    50: '#a2a35e',
    500: '#787f16',
    950: '#000000',
  },
}
SCSS
$custom: #787f16;
$custom-light: #a2a35e;
$custom-dark: #000000;
JSON
{
  "hex": "#787f16",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 22
  },
  "hsl": {
    "h": 64,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.57188,
    "c": 0.12068,
    "h": 113.6
  },
  "luminance": 0.1923
}

Semantic roles & 50–950 ramp

primary
#787F16
secondary
#453DB4
accent
#3BED46
background
#FAFAF5
surface
#F4F3EA
border
#CECDC6
text
#0F0F05
muted
#7F7F79

Preview Lab

Preview with #787F16

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

Preview Lab → · Contrast checker → · Palette generator →

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