#8E802B#8E802B

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

Color values

HEX#8E802B
RGBrgb(142, 128, 43)
HSLhsl(52, 54%, 36%)
HSVhsv(52, 70%, 56%)
CMYKcmyk(0%, 9.9%, 69.7%, 44.3%)
CIE-LABlab(53.35, -4.96, 46.12)
CIE-LCHlch(53.35, 46.39, 96.14°)
OKLaboklab(59.61% -0.0179 0.1035)
OKLCHoklch(59.61% 0.105 99.8)
XYZxyz(19.3114, 21.3644, 5.3916)
Luminance0.2136 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E802B #2B398E
analogous
#8E4F2B #8E802B #6B8E2B
triadic
#8E802B #2B8E80 #802B8E
tetradic
#8E802B #2B8E4F #2B398E #8E2B6B
square
#8E802B #2B8E4F #2B398E #8E2B6B
split-complementary
#8E802B #2B6B8E #4F2B8E
monochromatic
#302B0F #5F561D #8E802B #BDAA39 #D0C163

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8E802B#FFFFFF#000000##000000
##8E802B1.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)
#8C7C1F
Deuteranopia (green-blind)
#908230
Tritanopia (blue-blind)
#99776F
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8e802b;
/* rgb */ color: rgb(142, 128, 43);
/* oklch */ color: oklch(59.6% 0.105 99.8);
Tailwind
colors: {
  custom: {
    50: '#b2a469',
    500: '#8e802b',
    950: '#000000',
  },
}
SCSS
$custom: #8e802b;
$custom-light: #b2a469;
$custom-dark: #000000;
JSON
{
  "hex": "#8e802b",
  "rgb": {
    "r": 142,
    "g": 128,
    "b": 43
  },
  "hsl": {
    "h": 51.515,
    "s": 53.514,
    "l": 36.275
  },
  "oklch": {
    "l": 0.59613,
    "c": 0.10505,
    "h": 99.8
  },
  "luminance": 0.21364
}

Semantic roles & 50–950 ramp

primary
#8E802B
secondary
#5F6BB6
accent
#60DD4B
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F07
muted
#807F7A

Preview Lab

Preview with #8E802B

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

Preview Lab → · Contrast checker → · Palette generator →

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