#808A1F#808A1F

#808A1F is a mid, vivid yellow. Relative luminance 0.229; OKLCH L 60.6% C 0.126 H 115.0°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#808A1F
RGBrgb(128, 138, 31)
HSLhsl(66, 63%, 33%)
HSVhsv(66, 78%, 54%)
CMYKcmyk(7.2%, 0%, 77.5%, 45.9%)
CIE-LABlab(54.93, -17.35, 51.90)
CIE-LCHlch(54.93, 54.72, 108.49°)
OKLaboklab(60.56% -0.0531 0.114)
OKLCHoklch(60.56% 0.126 115)
XYZxyz(18.2384, 22.8654, 4.7487)
Luminance0.2286 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#808A1F #291F8A
analogous
#8A5E1F #808A1F #4B8A1F
triadic
#808A1F #1F808A #8A1F80
tetradic
#808A1F #1F8A5E #291F8A #8A1F4B
square
#808A1F #1F8A5E #291F8A #8A1F4B
split-complementary
#808A1F #1F4B8A #5E1F8A
monochromatic
#232609 #525814 #808A1F #AEBC2A #CAD74C

Accessibility & contrast

On white

3.77
#808A1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#808A1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #808A1F
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##808A1F#FFFFFF#000000##000000
##808A1F1.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#948304
Deuteranopia (green-blind)
#948428
Tritanopia (blue-blind)
#898276
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #808a1f;
/* rgb */ color: rgb(128, 138, 31);
/* oklch */ color: oklch(60.6% 0.126 115.0);
Tailwind
colors: {
  custom: {
    50: '#a8ac64',
    500: '#808a1f',
    950: '#000000',
  },
}
SCSS
$custom: #808a1f;
$custom-light: #a8ac64;
$custom-dark: #000000;
JSON
{
  "hex": "#808a1f",
  "rgb": {
    "r": 128,
    "g": 138,
    "b": 31
  },
  "hsl": {
    "h": 65.607,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.60555,
    "c": 0.12576,
    "h": 115
  },
  "luminance": 0.22865
}

Semantic roles & 50–950 ramp

primary
#808A1F
secondary
#554BBA
accent
#41E651
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #808A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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