#788E16#788E16

#788E16 is a mid, vivid yellow-green. Relative luminance 0.234; OKLCH L 60.8% C 0.138 H 120.4°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#788E16
RGBrgb(120, 142, 22)
HSLhsl(71, 73%, 32%)
HSVhsv(71, 85%, 56%)
CMYKcmyk(15.5%, 0%, 84.5%, 44.3%)
CIE-LABlab(55.48, -23.31, 54.87)
CIE-LCHlch(55.48, 59.61, 113.01°)
OKLaboklab(60.83% -0.0697 0.119)
OKLCHoklch(60.83% 0.138 120.4)
XYZxyz(17.5639, 23.3971, 4.3497)
Luminance0.2340 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788E16 #2C168E
analogous
#8E6816 #788E16 #3C8E16
triadic
#788E16 #16788E #8E1678
tetradic
#788E16 #168E68 #2C168E #8E163C
square
#788E16 #168E68 #2C168E #8E163C
split-complementary
#788E16 #163C8E #68168E
monochromatic
#1E2406 #4B590E #788E16 #A5C31E #C3E13D

Accessibility & contrast

On white

3.70
#788E16 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#788E16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #788E16
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##788E16#FFFFFF#000000##000000
##788E161.003.705.685.68
#FFFFFF3.701.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#978500
Deuteranopia (green-blind)
#958523
Tritanopia (blue-blind)
#7F8679
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #788e16;
/* rgb */ color: rgb(120, 142, 22);
/* oklch */ color: oklch(60.8% 0.138 120.4);
Tailwind
colors: {
  custom: {
    50: '#a3af61',
    500: '#788e16',
    950: '#000000',
  },
}
SCSS
$custom: #788e16;
$custom-light: #a3af61;
$custom-dark: #000000;
JSON
{
  "hex": "#788e16",
  "rgb": {
    "r": 120,
    "g": 142,
    "b": 22
  },
  "hsl": {
    "h": 71,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.60827,
    "c": 0.13793,
    "h": 120.4
  },
  "luminance": 0.23397
}

Semantic roles & 50–950 ramp

primary
#788E16
secondary
#573FC1
accent
#38F05A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1005
muted
#7F7F7A

Preview Lab

Preview with #788E16

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

Preview Lab → · Contrast checker → · Palette generator →

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