#808B21#808B21

#808B21 is a mid, vivid yellow. Relative luminance 0.232; OKLCH L 60.8% C 0.126 H 115.5°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#808B21
RGBrgb(128, 139, 33)
HSLhsl(66, 62%, 34%)
HSVhsv(66, 76%, 55%)
CMYKcmyk(7.9%, 0%, 76.3%, 45.5%)
CIE-LABlab(55.24, -17.78, 51.50)
CIE-LCHlch(55.24, 54.48, 109.05°)
OKLaboklab(60.81% -0.0541 0.1135)
OKLCHoklch(60.81% 0.126 115.5)
XYZxyz(18.4097, 23.1645, 4.9399)
Luminance0.2316 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#808B21 #2C218B
analogous
#8B6121 #808B21 #4B8B21
triadic
#808B21 #21808B #8B2180
tetradic
#808B21 #218B61 #2C218B #8B214B
square
#808B21 #218B61 #2C218B #8B214B
split-complementary
#808B21 #214B8B #61218B
monochromatic
#25280A #525A15 #808B21 #AEBC2D #C8D651

Accessibility & contrast

On white

3.73
#808B21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.63
#808B21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #808B21
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##808B21#FFFFFF#000000##000000
##808B211.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#958409
Deuteranopia (green-blind)
#94852A
Tritanopia (blue-blind)
#898377
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #808b21;
/* rgb */ color: rgb(128, 139, 33);
/* oklch */ color: oklch(60.8% 0.126 115.5);
Tailwind
colors: {
  custom: {
    50: '#a8ac65',
    500: '#808b21',
    950: '#000000',
  },
}
SCSS
$custom: #808b21;
$custom-light: #a8ac65;
$custom-dark: #000000;
JSON
{
  "hex": "#808b21",
  "rgb": {
    "r": 128,
    "g": 139,
    "b": 33
  },
  "hsl": {
    "h": 66.226,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.60806,
    "c": 0.12576,
    "h": 115.5
  },
  "luminance": 0.23164
}

Semantic roles & 50–950 ramp

primary
#808B21
secondary
#5A4FB9
accent
#43E554
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #808B21

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

Preview Lab → · Contrast checker → · Palette generator →

#808B21 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva