#788817#788817

#788817 is a mid, vivid yellow. Relative luminance 0.217; OKLCH L 59.4% C 0.130 H 118.0°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#788817
RGBrgb(120, 136, 23)
HSLhsl(68, 71%, 31%)
HSVhsv(68, 83%, 53%)
CMYKcmyk(11.8%, 0%, 83.1%, 46.7%)
CIE-LABlab(53.67, -20.22, 53.02)
CIE-LCHlch(53.67, 56.74, 110.88°)
OKLaboklab(59.37% -0.0612 0.1152)
OKLCHoklch(59.37% 0.13 118)
XYZxyz(16.7050, 21.6634, 4.1119)
Luminance0.2166 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788817 #271788
analogous
#885F17 #788817 #3F8817
triadic
#788817 #177888 #881778
tetradic
#788817 #17885F #271788 #88173F
square
#788817 #17885F #271788 #88173F
split-complementary
#788817 #173F88 #5F1788
monochromatic
#1C1F05 #4A540E #788817 #A6BC20 #C7DE3B

Accessibility & contrast

On white

3.94
#788817 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#788817 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #788817
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##788817#FFFFFF#000000##000000
##7888171.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#928000
Deuteranopia (green-blind)
#908123
Tritanopia (blue-blind)
#808074
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #788817;
/* rgb */ color: rgb(120, 136, 23);
/* oklch */ color: oklch(59.4% 0.130 118.0);
Tailwind
colors: {
  custom: {
    50: '#a2aa60',
    500: '#788817',
    950: '#000000',
  },
}
SCSS
$custom: #788817;
$custom-light: #a2aa60;
$custom-dark: #000000;
JSON
{
  "hex": "#788817",
  "rgb": {
    "r": 120,
    "g": 136,
    "b": 23
  },
  "hsl": {
    "h": 68.496,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.59369,
    "c": 0.13046,
    "h": 118
  },
  "luminance": 0.21663
}

Semantic roles & 50–950 ramp

primary
#788817
secondary
#513FBC
accent
#3AEE53
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1005
muted
#7F7F7A

Preview Lab

Preview with #788817

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

Preview Lab → · Contrast checker → · Palette generator →

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