#788917#788917

#788917 is a mid, vivid yellow. Relative luminance 0.219; OKLCH L 59.6% C 0.132 H 118.4°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#788917
RGBrgb(120, 137, 23)
HSLhsl(69, 71%, 31%)
HSVhsv(69, 83%, 54%)
CMYKcmyk(12.4%, 0%, 83.2%, 46.3%)
CIE-LABlab(53.97, -20.73, 53.28)
CIE-LCHlch(53.97, 57.17, 111.26°)
OKLaboklab(59.61% -0.0626 0.1158)
OKLCHoklch(59.61% 0.132 118.4)
XYZxyz(16.8465, 21.9464, 4.1590)
Luminance0.2195 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788917 #281789
analogous
#896117 #788917 #3F8917
triadic
#788917 #177889 #891778
tetradic
#788917 #178961 #281789 #89173F
square
#788917 #178961 #281789 #89173F
split-complementary
#788917 #173F89 #611789
monochromatic
#1C2005 #4A550E #788917 #A6BD20 #C6DE3C

Accessibility & contrast

On white

3.90
#788917 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.39
#788917 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #788917
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##788917#FFFFFF#000000##000000
##7889171.003.905.395.39
#FFFFFF3.901.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#938100
Deuteranopia (green-blind)
#918123
Tritanopia (blue-blind)
#808175
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #788917;
/* rgb */ color: rgb(120, 137, 23);
/* oklch */ color: oklch(59.6% 0.132 118.4);
Tailwind
colors: {
  custom: {
    50: '#a2ab60',
    500: '#788917',
    950: '#000000',
  },
}
SCSS
$custom: #788917;
$custom-light: #a2ab60;
$custom-dark: #000000;
JSON
{
  "hex": "#788917",
  "rgb": {
    "r": 120,
    "g": 137,
    "b": 23
  },
  "hsl": {
    "h": 68.947,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.59612,
    "c": 0.13162,
    "h": 118.4
  },
  "luminance": 0.21946
}

Semantic roles & 50–950 ramp

primary
#788917
secondary
#523FBD
accent
#3AEE55
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1005
muted
#7F7F7A

Preview Lab

Preview with #788917

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

Preview Lab → · Contrast checker → · Palette generator →

#788917 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva