#808D31#808D31

#808D31 is a mid, moderate yellow. Relative luminance 0.239; OKLCH L 61.4% C 0.117 H 116.8°. Best body text is #000000 at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#808D31
RGBrgb(128, 141, 49)
HSLhsl(68, 48%, 37%)
HSVhsv(68, 65%, 55%)
CMYKcmyk(9.2%, 0%, 65.2%, 44.7%)
CIE-LABlab(55.95, -17.86, 45.84)
CIE-LCHlch(55.95, 49.20, 111.29°)
OKLaboklab(61.41% -0.0527 0.1043)
OKLCHoklch(61.41% 0.117 116.8)
XYZxyz(18.9817, 23.8609, 6.5108)
Luminance0.2386 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#808D31 #3E318D
analogous
#8D6C31 #808D31 #528D31
triadic
#808D31 #31808D #8D3180
tetradic
#808D31 #318D6C #3E318D #8D3152
square
#808D31 #318D6C #3E318D #8D3152
split-complementary
#808D31 #31528D #6C318D
monochromatic
#2E3211 #576021 #808D31 #A9BA41 #BFCC6C

Accessibility & contrast

On white

3.64
#808D31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.77
#808D31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #808D31
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##808D31#FFFFFF#000000##000000
##808D311.003.645.775.77
#FFFFFF3.641.0021.0021.00
#0000005.7721.001.001.00
##0000005.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#968625
Deuteranopia (green-blind)
#958737
Tritanopia (blue-blind)
#88857A
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #808d31;
/* rgb */ color: rgb(128, 141, 49);
/* oklch */ color: oklch(61.4% 0.117 116.8);
Tailwind
colors: {
  custom: {
    50: '#a7ae6e',
    500: '#808d31',
    950: '#000000',
  },
}
SCSS
$custom: #808d31;
$custom-light: #a7ae6e;
$custom-dark: #000000;
JSON
{
  "hex": "#808d31",
  "rgb": {
    "r": 128,
    "g": 141,
    "b": 49
  },
  "hsl": {
    "h": 68.478,
    "s": 48.421,
    "l": 37.255
  },
  "oklch": {
    "l": 0.6141,
    "c": 0.11688,
    "h": 116.8
  },
  "luminance": 0.23861
}

Semantic roles & 50–950 ramp

primary
#808D31
secondary
#7166B4
accent
#50D863
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #808D31

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

Preview Lab → · Contrast checker → · Palette generator →

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