#788A17#788A17

#788A17 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#788A17
RGBrgb(120, 138, 23)
HSLhsl(69, 71%, 32%)
HSVhsv(69, 83%, 54%)
CMYKcmyk(13%, 0%, 83.3%, 45.9%)
CIE-LABlab(54.27, -21.24, 53.55)
CIE-LCHlch(54.27, 57.61, 111.64°)
OKLaboklab(59.86% -0.064 0.1164)
OKLCHoklch(59.86% 0.133 118.8)
XYZxyz(16.9893, 22.2320, 4.2067)
Luminance0.2223 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788A17 #29178A
analogous
#8A6317 #788A17 #3F8A17
triadic
#788A17 #17788A #8A1778
tetradic
#788A17 #178A63 #29178A #8A173F
square
#788A17 #178A63 #29178A #8A173F
split-complementary
#788A17 #173F8A #63178A
monochromatic
#1D2106 #4A560E #788A17 #A6BE20 #C5DF3D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##788A17#FFFFFF#000000##000000
##788A171.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: #788a17;
/* rgb */ color: rgb(120, 138, 23);
/* oklch */ color: oklch(59.9% 0.133 118.8);
Tailwind
colors: {
  custom: {
    50: '#a2ac60',
    500: '#788a17',
    950: '#000000',
  },
}
SCSS
$custom: #788a17;
$custom-light: #a2ac60;
$custom-dark: #000000;
JSON
{
  "hex": "#788a17",
  "rgb": {
    "r": 120,
    "g": 138,
    "b": 23
  },
  "hsl": {
    "h": 69.391,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.59856,
    "c": 0.13279,
    "h": 118.8
  },
  "luminance": 0.22232
}

Semantic roles & 50–950 ramp

primary
#788A17
secondary
#533FBE
accent
#3AEE56
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1005
muted
#7F7F7A

Preview Lab

Preview with #788A17

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

Preview Lab → · Contrast checker → · Palette generator →

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