#788F12#788F12

#788F12 is a mid, vivid yellow-green. Relative luminance 0.237; OKLCH L 61.1% C 0.141 H 120.6°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#788F12
RGBrgb(120, 143, 18)
HSLhsl(71, 78%, 32%)
HSVhsv(71, 87%, 56%)
CMYKcmyk(16.1%, 0%, 87.4%, 43.9%)
CIE-LABlab(55.77, -23.94, 56.10)
CIE-LCHlch(55.77, 60.99, 113.11°)
OKLaboklab(61.06% -0.0717 0.121)
OKLCHoklch(61.06% 0.141 120.6)
XYZxyz(17.6777, 23.6817, 4.2119)
Luminance0.2368 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788F12 #29128F
analogous
#8F6812 #788F12 #3A8F12
triadic
#788F12 #12788F #8F1278
tetradic
#788F12 #128F68 #29128F #8F123A
square
#788F12 #128F68 #29128F #8F123A
split-complementary
#788F12 #123A8F #68128F
monochromatic
#1D2204 #4A590B #788F12 #A6C519 #C5E636

Accessibility & contrast

On white

3.66
#788F12 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.74
#788F12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #788F12
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##788F12#FFFFFF#000000##000000
##788F121.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#998600
Deuteranopia (green-blind)
#968621
Tritanopia (blue-blind)
#7F8779
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #788f12;
/* rgb */ color: rgb(120, 143, 18);
/* oklch */ color: oklch(61.1% 0.141 120.6);
Tailwind
colors: {
  custom: {
    50: '#a3af60',
    500: '#788f12',
    950: '#000000',
  },
}
SCSS
$custom: #788f12;
$custom-light: #a3af60;
$custom-dark: #000000;
JSON
{
  "hex": "#788f12",
  "rgb": {
    "r": 120,
    "g": 143,
    "b": 18
  },
  "hsl": {
    "h": 71.04,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.61056,
    "c": 0.14063,
    "h": 120.6
  },
  "luminance": 0.23682
}

Semantic roles & 50–950 ramp

primary
#788F12
secondary
#533AC3
accent
#34F457
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #788F12

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

Preview Lab → · Contrast checker → · Palette generator →

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