#788418#788418

#788418 is a mid, vivid yellow. Relative luminance 0.206; OKLCH L 58.4% C 0.125 H 116.2°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#788418
RGBrgb(120, 132, 24)
HSLhsl(67, 69%, 31%)
HSVhsv(67, 82%, 52%)
CMYKcmyk(9.1%, 0%, 81.8%, 48.2%)
CIE-LABlab(52.47, -18.11, 51.66)
CIE-LCHlch(52.47, 54.74, 109.31°)
OKLaboklab(58.4% -0.0553 0.1125)
OKLCHoklch(58.4% 0.125 116.2)
XYZxyz(16.1623, 20.5618, 3.9814)
Luminance0.2056 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788418 #241884
analogous
#845A18 #788418 #428418
triadic
#788418 #187884 #841878
tetradic
#788418 #18845A #241884 #841842
square
#788418 #18845A #241884 #841842
split-complementary
#788418 #184284 #5A1884
monochromatic
#1A1C05 #49500F #788418 #A7B821 #CADB3B

Accessibility & contrast

On white

4.11
#788418 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#788418 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #788418
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##788418#FFFFFF#000000##000000
##7884181.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D00
Deuteranopia (green-blind)
#8D7E23
Tritanopia (blue-blind)
#807C70
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #788418;
/* rgb */ color: rgb(120, 132, 24);
/* oklch */ color: oklch(58.4% 0.125 116.2);
Tailwind
colors: {
  custom: {
    50: '#a2a760',
    500: '#788418',
    950: '#000000',
  },
}
SCSS
$custom: #788418;
$custom-light: #a2a760;
$custom-dark: #000000;
JSON
{
  "hex": "#788418",
  "rgb": {
    "r": 120,
    "g": 132,
    "b": 24
  },
  "hsl": {
    "h": 66.667,
    "s": 69.231,
    "l": 30.588
  },
  "oklch": {
    "l": 0.58404,
    "c": 0.12537,
    "h": 116.2
  },
  "luminance": 0.20562
}

Semantic roles & 50–950 ramp

primary
#788418
secondary
#4D40B8
accent
#3CEC4F
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#0F0F05
muted
#7F7F79

Preview Lab

Preview with #788418

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

Preview Lab → · Contrast checker → · Palette generator →

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