#788A18#788A18

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

Color values

HEX#788A18
RGBrgb(120, 138, 24)
HSLhsl(69, 70%, 32%)
HSVhsv(69, 83%, 54%)
CMYKcmyk(13%, 0%, 82.6%, 45.9%)
CIE-LABlab(54.28, -21.21, 53.27)
CIE-LCHlch(54.28, 57.33, 111.71°)
OKLaboklab(59.86% -0.0638 0.1159)
OKLCHoklch(59.86% 0.132 118.8)
XYZxyz(16.9995, 22.2361, 4.2604)
Luminance0.2224 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788A18 #2A188A
analogous
#8A6318 #788A18 #3F8A18
triadic
#788A18 #18788A #8A1878
tetradic
#788A18 #188A63 #2A188A #8A183F
square
#788A18 #188A63 #2A188A #8A183F
split-complementary
#788A18 #183F8A #63188A
monochromatic
#1D2206 #4B560F #788A18 #A5BE21 #C5DE3F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##788A18#FFFFFF#000000##000000
##788A181.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)
#928224
Tritanopia (blue-blind)
#808275
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #788a18;
/* rgb */ color: rgb(120, 138, 24);
/* oklch */ color: oklch(59.9% 0.132 118.8);
Tailwind
colors: {
  custom: {
    50: '#a2ac61',
    500: '#788a18',
    950: '#000000',
  },
}
SCSS
$custom: #788a18;
$custom-light: #a2ac61;
$custom-dark: #000000;
JSON
{
  "hex": "#788a18",
  "rgb": {
    "r": 120,
    "g": 138,
    "b": 24
  },
  "hsl": {
    "h": 69.474,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.59861,
    "c": 0.13234,
    "h": 118.8
  },
  "luminance": 0.22236
}

Semantic roles & 50–950 ramp

primary
#788A18
secondary
#5440BD
accent
#3BED57
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1005
muted
#7F7F7A

Preview Lab

Preview with #788A18

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

Preview Lab → · Contrast checker → · Palette generator →

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