#788018#788018

#788018 is a mid, vivid yellow. Relative luminance 0.195; OKLCH L 57.4% C 0.121 H 114.2°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#788018
RGBrgb(120, 128, 24)
HSLhsl(65, 68%, 30%)
HSVhsv(65, 81%, 50%)
CMYKcmyk(6.3%, 0%, 81.3%, 49.8%)
CIE-LABlab(51.26, -16.00, 50.59)
CIE-LCHlch(51.26, 53.06, 107.55°)
OKLaboklab(57.44% -0.0495 0.1102)
OKLCHoklch(57.44% 0.121 114.2)
XYZxyz(15.6303, 19.4977, 3.8040)
Luminance0.1950 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788018 #201880
analogous
#805418 #788018 #448018
triadic
#788018 #187880 #801878
tetradic
#788018 #188054 #201880 #801844
square
#788018 #188054 #201880 #801844
split-complementary
#788018 #184480 #541880
monochromatic
#181A05 #484C0E #788018 #A8B422 #CDDA39

Accessibility & contrast

On white

4.29
#788018 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#788018 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #788018
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##788018#FFFFFF#000000##000000
##7880181.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7900
Deuteranopia (green-blind)
#8A7B22
Tritanopia (blue-blind)
#80786D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #788018;
/* rgb */ color: rgb(120, 128, 24);
/* oklch */ color: oklch(57.4% 0.121 114.2);
Tailwind
colors: {
  custom: {
    50: '#a2a45f',
    500: '#788018',
    950: '#000000',
  },
}
SCSS
$custom: #788018;
$custom-light: #a2a45f;
$custom-dark: #000000;
JSON
{
  "hex": "#788018",
  "rgb": {
    "r": 120,
    "g": 128,
    "b": 24
  },
  "hsl": {
    "h": 64.615,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.57439,
    "c": 0.12082,
    "h": 114.2
  },
  "luminance": 0.19497
}

Semantic roles & 50–950 ramp

primary
#788018
secondary
#4840B4
accent
#3DEB4A
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#0F0F05
muted
#7F7F79

Preview Lab

Preview with #788018

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

Preview Lab → · Contrast checker → · Palette generator →

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