#8A802F#8A802F

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

Color values

HEX#8A802F
RGBrgb(138, 128, 47)
HSLhsl(53, 49%, 36%)
HSVhsv(53, 66%, 54%)
CMYKcmyk(0%, 7.2%, 65.9%, 45.9%)
CIE-LABlab(53.00, -6.54, 43.87)
CIE-LCHlch(53.00, 44.35, 98.48°)
OKLaboklab(59.26% -0.0216 0.0996)
OKLCHoklch(59.26% 0.102 102.3)
XYZxyz(18.7142, 21.0476, 5.7656)
Luminance0.2105 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A802F #2F398A
analogous
#8A532F #8A802F #678A2F
triadic
#8A802F #2F8A80 #802F8A
tetradic
#8A802F #2F8A53 #2F398A #8A2F67
square
#8A802F #2F8A53 #2F398A #8A2F67
split-complementary
#8A802F #2F678A #532F8A
monochromatic
#2F2B10 #5C561F #8A802F #B8AA3F #CCC168

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A802F#FFFFFF#000000##000000
##8A802F1.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)
#8B7C25
Deuteranopia (green-blind)
#8F8134
Tritanopia (blue-blind)
#94776F
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8a802f;
/* rgb */ color: rgb(138, 128, 47);
/* oklch */ color: oklch(59.3% 0.102 102.3);
Tailwind
colors: {
  custom: {
    50: '#afa46c',
    500: '#8a802f',
    950: '#000000',
  },
}
SCSS
$custom: #8a802f;
$custom-light: #afa46c;
$custom-dark: #000000;
JSON
{
  "hex": "#8a802f",
  "rgb": {
    "r": 138,
    "g": 128,
    "b": 47
  },
  "hsl": {
    "h": 53.407,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.5926,
    "c": 0.1019,
    "h": 102.3
  },
  "luminance": 0.21047
}

Semantic roles & 50–950 ramp

primary
#8A802F
secondary
#626BB3
accent
#5ED94F
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F07
muted
#807F7A

Preview Lab

Preview with #8A802F

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

Preview Lab → · Contrast checker → · Palette generator →

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