#8A802D#8A802D

#8A802D is a mid, moderate yellow. Relative luminance 0.210; OKLCH L 59.2% C 0.104 H 102.4°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#8A802D
RGBrgb(138, 128, 45)
HSLhsl(54, 51%, 36%)
HSVhsv(54, 67%, 54%)
CMYKcmyk(0%, 7.2%, 67.4%, 45.9%)
CIE-LABlab(52.98, -6.67, 44.75)
CIE-LCHlch(52.98, 45.24, 98.48°)
OKLaboklab(59.24% -0.0223 0.1011)
OKLCHoklch(59.24% 0.104 102.4)
XYZxyz(18.6748, 21.0318, 5.5580)
Luminance0.2103 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A802D #2D378A
analogous
#8A512D #8A802D #658A2D
triadic
#8A802D #2D8A80 #802D8A
tetradic
#8A802D #2D8A51 #2D378A #8A2D65
square
#8A802D #2D8A51 #2D378A #8A2D65
split-complementary
#8A802D #2D658A #512D8A
monochromatic
#2E2A0F #5C551E #8A802D #B8AB3C #CDC265

Accessibility & contrast

On white

4.03
#8A802D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#8A802D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A802D
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A802D#FFFFFF#000000##000000
##8A802D1.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C22
Deuteranopia (green-blind)
#8F8032
Tritanopia (blue-blind)
#94776F
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a802d;
/* rgb */ color: rgb(138, 128, 45);
/* oklch */ color: oklch(59.2% 0.104 102.4);
Tailwind
colors: {
  custom: {
    50: '#afa46a',
    500: '#8a802d',
    950: '#000000',
  },
}
SCSS
$custom: #8a802d;
$custom-light: #afa46a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a802d",
  "rgb": {
    "r": 138,
    "g": 128,
    "b": 45
  },
  "hsl": {
    "h": 53.548,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.59241,
    "c": 0.10352,
    "h": 102.4
  },
  "luminance": 0.21031
}

Semantic roles & 50–950 ramp

primary
#8A802D
secondary
#6069B3
accent
#5DDA4D
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F07
muted
#807F7A

Preview Lab

Preview with #8A802D

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

Preview Lab → · Contrast checker → · Palette generator →

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