#8E802A#8E802A

#8E802A is a mid, moderate yellow. Relative luminance 0.214; OKLCH L 59.6% C 0.106 H 99.9°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#8E802A
RGBrgb(142, 128, 42)
HSLhsl(52, 54%, 36%)
HSVhsv(52, 70%, 56%)
CMYKcmyk(0%, 9.9%, 70.4%, 44.3%)
CIE-LABlab(53.34, -5.02, 46.54)
CIE-LCHlch(53.34, 46.81, 96.16°)
OKLaboklab(59.6% -0.0182 0.1042)
OKLCHoklch(59.6% 0.106 99.9)
XYZxyz(19.2933, 21.3572, 5.2961)
Luminance0.2136 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E802A #2A388E
analogous
#8E4E2A #8E802A #6A8E2A
triadic
#8E802A #2A8E80 #802A8E
tetradic
#8E802A #2A8E4E #2A388E #8E2A6A
square
#8E802A #2A8E4E #2A388E #8E2A6A
split-complementary
#8E802A #2A6A8E #4E2A8E
monochromatic
#302B0E #5F551C #8E802A #BDAB38 #D1C162

Accessibility & contrast

On white

3.98
#8E802A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#8E802A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E802A
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E802A#FFFFFF#000000##000000
##8E802A1.003.985.275.27
#FFFFFF3.981.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C1E
Deuteranopia (green-blind)
#90822F
Tritanopia (blue-blind)
#99776F
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8e802a;
/* rgb */ color: rgb(142, 128, 42);
/* oklch */ color: oklch(59.6% 0.106 99.9);
Tailwind
colors: {
  custom: {
    50: '#b2a469',
    500: '#8e802a',
    950: '#000000',
  },
}
SCSS
$custom: #8e802a;
$custom-light: #b2a469;
$custom-dark: #000000;
JSON
{
  "hex": "#8e802a",
  "rgb": {
    "r": 142,
    "g": 128,
    "b": 42
  },
  "hsl": {
    "h": 51.6,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.59604,
    "c": 0.10581,
    "h": 99.9
  },
  "luminance": 0.21356
}

Semantic roles & 50–950 ramp

primary
#8E802A
secondary
#5D6AB6
accent
#5FDE4A
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8E802A

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

Preview Lab → · Contrast checker → · Palette generator →

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