#808012#808012

#808012 is a mid, vivid yellow. Relative luminance 0.201; OKLCH L 58.1% C 0.121 H 109.6°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#808012
RGBrgb(128, 128, 18)
HSLhsl(60, 75%, 29%)
HSVhsv(60, 86%, 50%)
CMYKcmyk(0%, 0%, 85.9%, 49.8%)
CIE-LABlab(51.92, -12.53, 53.12)
CIE-LCHlch(51.92, 54.58, 103.27°)
OKLaboklab(58.12% -0.0408 0.1142)
OKLCHoklch(58.12% 0.121 109.6)
XYZxyz(16.7311, 20.0717, 3.5651)
Luminance0.2007 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#808012 #121280
analogous
#804912 #808012 #498012
triadic
#808012 #128080 #801280
tetradic
#808012 #128049 #121280 #801249
square
#808012 #128049 #121280 #801249
split-complementary
#808012 #124980 #491280
monochromatic
#1B1B04 #4A4A0A #808012 #B6B61A #E1E12B

Accessibility & contrast

On white

4.19
#808012 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#808012 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #808012
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##808012#FFFFFF#000000##000000
##8080121.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A00
Deuteranopia (green-blind)
#8C7D1D
Tritanopia (blue-blind)
#8A776D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #808012;
/* rgb */ color: rgb(128, 128, 18);
/* oklch */ color: oklch(58.1% 0.121 109.6);
Tailwind
colors: {
  custom: {
    50: '#a8a45d',
    500: '#808012',
    950: '#000000',
  },
}
SCSS
$custom: #808012;
$custom-light: #a8a45d;
$custom-dark: #000000;
JSON
{
  "hex": "#808012",
  "rgb": {
    "r": 128,
    "g": 128,
    "b": 18
  },
  "hsl": {
    "h": 60,
    "s": 75.342,
    "l": 28.627
  },
  "oklch": {
    "l": 0.58121,
    "c": 0.12124,
    "h": 109.6
  },
  "luminance": 0.20071
}

Semantic roles & 50–950 ramp

primary
#808012
secondary
#3838B6
accent
#36F236
background
#FAFAF5
surface
#F4F4E9
border
#CECEC5
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #808012

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

Preview Lab → · Contrast checker → · Palette generator →

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