#788218#788218

#788218 is a mid, vivid yellow. Relative luminance 0.200; OKLCH L 57.9% C 0.123 H 115.2°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#788218
RGBrgb(120, 130, 24)
HSLhsl(66, 69%, 30%)
HSVhsv(66, 82%, 51%)
CMYKcmyk(7.7%, 0%, 81.5%, 49%)
CIE-LABlab(51.87, -17.06, 51.13)
CIE-LCHlch(51.87, 53.90, 108.45°)
OKLaboklab(57.92% -0.0524 0.1114)
OKLCHoklch(57.92% 0.123 115.2)
XYZxyz(15.8937, 20.0246, 3.8918)
Luminance0.2002 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788218 #221882
analogous
#825718 #788218 #438218
triadic
#788218 #187882 #821878
tetradic
#788218 #188257 #221882 #821843
square
#788218 #188257 #221882 #821843
split-complementary
#788218 #184382 #571882
monochromatic
#191B05 #484E0E #788218 #A8B622 #CBDB3A

Accessibility & contrast

On white

4.20
#788218 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#788218 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #788218
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##788218#FFFFFF#000000##000000
##7882181.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B00
Deuteranopia (green-blind)
#8B7C22
Tritanopia (blue-blind)
#807A6F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #788218;
/* rgb */ color: rgb(120, 130, 24);
/* oklch */ color: oklch(57.9% 0.123 115.2);
Tailwind
colors: {
  custom: {
    50: '#a2a660',
    500: '#788218',
    950: '#000000',
  },
}
SCSS
$custom: #788218;
$custom-light: #a2a660;
$custom-dark: #000000;
JSON
{
  "hex": "#788218",
  "rgb": {
    "r": 120,
    "g": 130,
    "b": 24
  },
  "hsl": {
    "h": 65.66,
    "s": 68.831,
    "l": 30.196
  },
  "oklch": {
    "l": 0.57921,
    "c": 0.12309,
    "h": 115.2
  },
  "luminance": 0.20024
}

Semantic roles & 50–950 ramp

primary
#788218
secondary
#4B40B6
accent
#3CEC4D
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#0F0F05
muted
#7F7F79

Preview Lab

Preview with #788218

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

Preview Lab → · Contrast checker → · Palette generator →

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