#8D802B#8D802B

#8D802B is a mid, moderate yellow. Relative luminance 0.213; OKLCH L 59.5% C 0.105 H 100.5°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#8D802B
RGBrgb(141, 128, 43)
HSLhsl(52, 53%, 36%)
HSVhsv(52, 70%, 55%)
CMYKcmyk(0%, 9.2%, 69.5%, 44.7%)
CIE-LABlab(53.25, -5.42, 45.99)
CIE-LCHlch(53.25, 46.31, 96.72°)
OKLaboklab(59.51% -0.0191 0.1033)
OKLCHoklch(59.51% 0.105 100.5)
XYZxyz(19.1406, 21.2763, 5.3836)
Luminance0.2127 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D802B #2B388D
analogous
#8D4F2B #8D802B #698D2B
triadic
#8D802B #2B8D80 #802B8D
tetradic
#8D802B #2B8D4F #2B388D #8D2B69
square
#8D802B #2B8D4F #2B388D #8D2B69
split-complementary
#8D802B #2B698D #4F2B8D
monochromatic
#2F2B0E #5E551D #8D802B #BCAB39 #CFC163

Accessibility & contrast

On white

4.00
#8D802B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#8D802B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D802B
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D802B#FFFFFF#000000##000000
##8D802B1.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8d802b;
/* rgb */ color: rgb(141, 128, 43);
/* oklch */ color: oklch(59.5% 0.105 100.5);
Tailwind
colors: {
  custom: {
    50: '#b1a469',
    500: '#8d802b',
    950: '#000000',
  },
}
SCSS
$custom: #8d802b;
$custom-light: #b1a469;
$custom-dark: #000000;
JSON
{
  "hex": "#8d802b",
  "rgb": {
    "r": 141,
    "g": 128,
    "b": 43
  },
  "hsl": {
    "h": 52.041,
    "s": 53.261,
    "l": 36.078
  },
  "oklch": {
    "l": 0.59514,
    "c": 0.10505,
    "h": 100.5
  },
  "luminance": 0.21275
}

Semantic roles & 50–950 ramp

primary
#8D802B
secondary
#5E6AB6
accent
#5EDD4B
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F07
muted
#807F7A

Preview Lab

Preview with #8D802B

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

Preview Lab → · Contrast checker → · Palette generator →

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