#8D802F#8D802F

#8D802F is a mid, moderate yellow. Relative luminance 0.213; OKLCH L 59.6% C 0.102 H 100.1°. Best body text is #000000 at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#8D802F
RGBrgb(141, 128, 47)
HSLhsl(52, 50%, 37%)
HSVhsv(52, 67%, 55%)
CMYKcmyk(0%, 9.2%, 66.7%, 44.7%)
CIE-LABlab(53.28, -5.17, 44.25)
CIE-LCHlch(53.28, 44.55, 96.67°)
OKLaboklab(59.55% -0.0179 0.1003)
OKLCHoklch(59.55% 0.102 100.1)
XYZxyz(19.2176, 21.3071, 5.7892)
Luminance0.2131 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D802F #2F3C8D
analogous
#8D512F #8D802F #6B8D2F
triadic
#8D802F #2F8D80 #802F8D
tetradic
#8D802F #2F8D51 #2F3C8D #8D2F6B
square
#8D802F #2F8D51 #2F3C8D #8D2F6B
split-complementary
#8D802F #2F6B8D #512F8D
monochromatic
#312D10 #5F5620 #8D802F #BBAA3E #CDBF69

Accessibility & contrast

On white

3.99
#8D802F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.26
#8D802F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D802F
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D802F#FFFFFF#000000##000000
##8D802F1.003.995.265.26
#FFFFFF3.991.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C25
Deuteranopia (green-blind)
#908133
Tritanopia (blue-blind)
#98776F
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8d802f;
/* rgb */ color: rgb(141, 128, 47);
/* oklch */ color: oklch(59.6% 0.102 100.1);
Tailwind
colors: {
  custom: {
    50: '#b1a46c',
    500: '#8d802f',
    950: '#000000',
  },
}
SCSS
$custom: #8d802f;
$custom-light: #b1a46c;
$custom-dark: #000000;
JSON
{
  "hex": "#8d802f",
  "rgb": {
    "r": 141,
    "g": 128,
    "b": 47
  },
  "hsl": {
    "h": 51.702,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.59552,
    "c": 0.10188,
    "h": 100.1
  },
  "luminance": 0.21306
}

Semantic roles & 50–950 ramp

primary
#8D802F
secondary
#646FB4
accent
#62DA4E
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F07
muted
#807F7A

Preview Lab

Preview with #8D802F

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

Preview Lab → · Contrast checker → · Palette generator →

#8D802F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva