#788818#788818

#788818 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#788818
RGBrgb(120, 136, 24)
HSLhsl(69, 70%, 31%)
HSVhsv(69, 82%, 53%)
CMYKcmyk(11.8%, 0%, 82.4%, 46.7%)
CIE-LABlab(53.67, -20.18, 52.73)
CIE-LCHlch(53.67, 56.46, 110.94°)
OKLaboklab(59.37% -0.061 0.1148)
OKLCHoklch(59.37% 0.13 118)
XYZxyz(16.7152, 21.6675, 4.1657)
Luminance0.2167 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788818 #281888
analogous
#886018 #788818 #408818
triadic
#788818 #187888 #881878
tetradic
#788818 #188860 #281888 #881840
square
#788818 #188860 #281888 #881840
split-complementary
#788818 #184088 #601888
monochromatic
#1C2006 #4A540F #788818 #A6BC21 #C6DD3E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##788818#FFFFFF#000000##000000
##7888181.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: #788818;
/* rgb */ color: rgb(120, 136, 24);
/* oklch */ color: oklch(59.4% 0.130 118.0);
Tailwind
colors: {
  custom: {
    50: '#a2aa61',
    500: '#788818',
    950: '#000000',
  },
}
SCSS
$custom: #788818;
$custom-light: #a2aa61;
$custom-dark: #000000;
JSON
{
  "hex": "#788818",
  "rgb": {
    "r": 120,
    "g": 136,
    "b": 24
  },
  "hsl": {
    "h": 68.571,
    "s": 70,
    "l": 31.373
  },
  "oklch": {
    "l": 0.59374,
    "c": 0.13,
    "h": 118
  },
  "luminance": 0.21667
}

Semantic roles & 50–950 ramp

primary
#788818
secondary
#5240BC
accent
#3BED54
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1005
muted
#7F7F7A

Preview Lab

Preview with #788818

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

Preview Lab → · Contrast checker → · Palette generator →

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