#788A16#788A16

#788A16 is a mid, vivid yellow. Relative luminance 0.222; OKLCH L 59.9% C 0.133 H 118.8°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#788A16
RGBrgb(120, 138, 22)
HSLhsl(69, 73%, 31%)
HSVhsv(69, 84%, 54%)
CMYKcmyk(13%, 0%, 84.1%, 45.9%)
CIE-LABlab(54.27, -21.28, 53.82)
CIE-LCHlch(54.27, 57.87, 111.57°)
OKLaboklab(59.85% -0.0642 0.1168)
OKLCHoklch(59.85% 0.133 118.8)
XYZxyz(16.9794, 22.2281, 4.1549)
Luminance0.2223 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788A16 #28168A
analogous
#8A6216 #788A16 #3E8A16
triadic
#788A16 #16788A #8A1678
tetradic
#788A16 #168A62 #28168A #8A163E
square
#788A16 #168A62 #28168A #8A163E
split-complementary
#788A16 #163E8A #62168A
monochromatic
#1C2005 #4A550E #788A16 #A6BF1E #C6E03B

Accessibility & contrast

On white

3.86
#788A16 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#788A16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #788A16
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##788A16#FFFFFF#000000##000000
##788A161.003.865.455.45
#FFFFFF3.861.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#928223
Tritanopia (blue-blind)
#808275
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #788a16;
/* rgb */ color: rgb(120, 138, 22);
/* oklch */ color: oklch(59.9% 0.133 118.8);
Tailwind
colors: {
  custom: {
    50: '#a2ac60',
    500: '#788a16',
    950: '#000000',
  },
}
SCSS
$custom: #788a16;
$custom-light: #a2ac60;
$custom-dark: #000000;
JSON
{
  "hex": "#788a16",
  "rgb": {
    "r": 120,
    "g": 138,
    "b": 22
  },
  "hsl": {
    "h": 69.31,
    "s": 72.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.59851,
    "c": 0.13323,
    "h": 118.8
  },
  "luminance": 0.22228
}

Semantic roles & 50–950 ramp

primary
#788A16
secondary
#523EBE
accent
#39EF55
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1005
muted
#7F7F7A

Preview Lab

Preview with #788A16

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

Preview Lab → · Contrast checker → · Palette generator →

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