#8A802B#8A802B

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

Color values

HEX#8A802B
RGBrgb(138, 128, 43)
HSLhsl(54, 52%, 35%)
HSVhsv(54, 69%, 54%)
CMYKcmyk(0%, 7.2%, 68.8%, 45.9%)
CIE-LABlab(52.97, -6.79, 45.61)
CIE-LCHlch(52.97, 46.11, 98.47°)
OKLaboklab(59.22% -0.0228 0.1026)
OKLCHoklch(59.22% 0.105 102.6)
XYZxyz(18.6372, 21.0168, 5.3600)
Luminance0.2102 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A802B #2B358A
analogous
#8A502B #8A802B #648A2B
triadic
#8A802B #2B8A80 #802B8A
tetradic
#8A802B #2B8A50 #2B358A #8A2B64
square
#8A802B #2B8A50 #2B358A #8A2B64
split-complementary
#8A802B #2B648A #502B8A
monochromatic
#2D290E #5B551C #8A802B #B9AB3A #CEC361

Accessibility & contrast

On white

4.04
#8A802B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#8A802B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A802B
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A802B#FFFFFF#000000##000000
##8A802B1.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a802b;
/* rgb */ color: rgb(138, 128, 43);
/* oklch */ color: oklch(59.2% 0.105 102.6);
Tailwind
colors: {
  custom: {
    50: '#afa469',
    500: '#8a802b',
    950: '#000000',
  },
}
SCSS
$custom: #8a802b;
$custom-light: #afa469;
$custom-dark: #000000;
JSON
{
  "hex": "#8a802b",
  "rgb": {
    "r": 138,
    "g": 128,
    "b": 43
  },
  "hsl": {
    "h": 53.684,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.59222,
    "c": 0.10509,
    "h": 102.6
  },
  "luminance": 0.21016
}

Semantic roles & 50–950 ramp

primary
#8A802B
secondary
#5D66B4
accent
#5BDC4C
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F07
muted
#807F7A

Preview Lab

Preview with #8A802B

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

Preview Lab → · Contrast checker → · Palette generator →

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