#788012#788012

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

Color values

HEX#788012
RGBrgb(120, 128, 18)
HSLhsl(64, 75%, 29%)
HSVhsv(64, 86%, 50%)
CMYKcmyk(6.3%, 0%, 85.9%, 49.8%)
CIE-LABlab(51.24, -16.21, 52.27)
CIE-LCHlch(51.24, 54.73, 107.23°)
OKLaboklab(57.41% -0.0505 0.1127)
OKLCHoklch(57.41% 0.124 114.1)
XYZxyz(15.5746, 19.4754, 3.5108)
Luminance0.1948 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788012 #1A1280
analogous
#805112 #788012 #418012
triadic
#788012 #127880 #801278
tetradic
#788012 #128051 #1A1280 #801241
square
#788012 #128051 #1A1280 #801241
split-complementary
#788012 #124180 #511280
monochromatic
#191B04 #464A0A #788012 #AAB61A #D4E12B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##788012#FFFFFF#000000##000000
##7880121.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)
#8A7B1E
Tritanopia (blue-blind)
#81786D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #788012;
/* rgb */ color: rgb(120, 128, 18);
/* oklch */ color: oklch(57.4% 0.124 114.1);
Tailwind
colors: {
  custom: {
    50: '#a2a45d',
    500: '#788012',
    950: '#000000',
  },
}
SCSS
$custom: #788012;
$custom-light: #a2a45d;
$custom-dark: #000000;
JSON
{
  "hex": "#788012",
  "rgb": {
    "r": 120,
    "g": 128,
    "b": 18
  },
  "hsl": {
    "h": 64.364,
    "s": 75.342,
    "l": 28.627
  },
  "oklch": {
    "l": 0.57411,
    "c": 0.12353,
    "h": 114.1
  },
  "luminance": 0.19475
}

Semantic roles & 50–950 ramp

primary
#788012
secondary
#4138B6
accent
#36F244
background
#FAFAF5
surface
#F4F4E9
border
#CECEC5
text
#0F0F05
muted
#7F7F79

Preview Lab

Preview with #788012

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

Preview Lab → · Contrast checker → · Palette generator →

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