#8A802A#8A802A

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

Color values

HEX#8A802A
RGBrgb(138, 128, 42)
HSLhsl(54, 53%, 35%)
HSVhsv(54, 70%, 54%)
CMYKcmyk(0%, 7.2%, 69.6%, 45.9%)
CIE-LABlab(52.96, -6.85, 46.04)
CIE-LCHlch(52.96, 46.54, 98.47°)
OKLaboklab(59.21% -0.0231 0.1033)
OKLCHoklch(59.21% 0.106 102.6)
XYZxyz(18.6191, 21.0095, 5.2645)
Luminance0.2101 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A802A #2A348A
analogous
#8A502A #8A802A #648A2A
triadic
#8A802A #2A8A80 #802A8A
tetradic
#8A802A #2A8A50 #2A348A #8A2A64
square
#8A802A #2A8A50 #2A348A #8A2A64
split-complementary
#8A802A #2A648A #502A8A
monochromatic
#2C290D #5B541C #8A802A #B9AC38 #CFC360

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A802A#FFFFFF#000000##000000
##8A802A1.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)
#8C7C1E
Deuteranopia (green-blind)
#8F802F
Tritanopia (blue-blind)
#95776F
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a802a;
/* rgb */ color: rgb(138, 128, 42);
/* oklch */ color: oklch(59.2% 0.106 102.6);
Tailwind
colors: {
  custom: {
    50: '#afa469',
    500: '#8a802a',
    950: '#000000',
  },
}
SCSS
$custom: #8a802a;
$custom-light: #afa469;
$custom-dark: #000000;
JSON
{
  "hex": "#8a802a",
  "rgb": {
    "r": 138,
    "g": 128,
    "b": 42
  },
  "hsl": {
    "h": 53.75,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.59214,
    "c": 0.10586,
    "h": 102.6
  },
  "luminance": 0.21009
}

Semantic roles & 50–950 ramp

primary
#8A802A
secondary
#5B65B4
accent
#5ADD4B
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A802A

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

Preview Lab → · Contrast checker → · Palette generator →

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