#8A802E#8A802E

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

Color values

HEX#8A802E
RGBrgb(138, 128, 46)
HSLhsl(53, 50%, 36%)
HSVhsv(53, 67%, 54%)
CMYKcmyk(0%, 7.2%, 66.7%, 45.9%)
CIE-LABlab(52.99, -6.61, 44.31)
CIE-LCHlch(52.99, 44.80, 98.48°)
OKLaboklab(59.25% -0.0219 0.1003)
OKLCHoklch(59.25% 0.103 102.3)
XYZxyz(18.6943, 21.0396, 5.6606)
Luminance0.2104 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A802E #2E388A
analogous
#8A522E #8A802E #668A2E
triadic
#8A802E #2E8A80 #802E8A
tetradic
#8A802E #2E8A52 #2E388A #8A2E66
square
#8A802E #2E8A52 #2E388A #8A2E66
split-complementary
#8A802E #2E668A #522E8A
monochromatic
#2E2B0F #5C551F #8A802E #B8AB3D #CCC166

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A802E#FFFFFF#000000##000000
##8A802E1.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)
#8C7C24
Deuteranopia (green-blind)
#8F8033
Tritanopia (blue-blind)
#94776F
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a802e;
/* rgb */ color: rgb(138, 128, 46);
/* oklch */ color: oklch(59.3% 0.103 102.3);
Tailwind
colors: {
  custom: {
    50: '#afa46b',
    500: '#8a802e',
    950: '#000000',
  },
}
SCSS
$custom: #8a802e;
$custom-light: #afa46b;
$custom-dark: #000000;
JSON
{
  "hex": "#8a802e",
  "rgb": {
    "r": 138,
    "g": 128,
    "b": 46
  },
  "hsl": {
    "h": 53.478,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.5925,
    "c": 0.10271,
    "h": 102.3
  },
  "luminance": 0.21039
}

Semantic roles & 50–950 ramp

primary
#8A802E
secondary
#616AB3
accent
#5DDA4E
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F07
muted
#807F7A

Preview Lab

Preview with #8A802E

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

Preview Lab → · Contrast checker → · Palette generator →

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