#8E802F#8E802F

#8E802F is a mid, moderate yellow. Relative luminance 0.214; OKLCH L 59.7% C 0.102 H 99.4°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#8E802F
RGBrgb(142, 128, 47)
HSLhsl(51, 50%, 37%)
HSVhsv(51, 67%, 56%)
CMYKcmyk(0%, 9.9%, 66.9%, 44.3%)
CIE-LABlab(53.38, -4.72, 44.38)
CIE-LCHlch(53.38, 44.63, 96.07°)
OKLaboklab(59.65% -0.0167 0.1005)
OKLCHoklch(59.65% 0.102 99.4)
XYZxyz(19.3884, 21.3952, 5.7972)
Luminance0.2139 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E802F #2F3D8E
analogous
#8E512F #8E802F #6D8E2F
triadic
#8E802F #2F8E80 #802F8E
tetradic
#8E802F #2F8E51 #2F3D8E #8E2F6D
square
#8E802F #2F8E51 #2F3D8E #8E2F6D
split-complementary
#8E802F #2F6D8E #512F8E
monochromatic
#322D11 #605720 #8E802F #BCA93E #CEBF6A

Accessibility & contrast

On white

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

On black

5.28
#8E802F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E802F
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E802F#FFFFFF#000000##000000
##8E802F1.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8e802f;
/* rgb */ color: rgb(142, 128, 47);
/* oklch */ color: oklch(59.7% 0.102 99.4);
Tailwind
colors: {
  custom: {
    50: '#b2a46c',
    500: '#8e802f',
    950: '#000000',
  },
}
SCSS
$custom: #8e802f;
$custom-light: #b2a46c;
$custom-dark: #000000;
JSON
{
  "hex": "#8e802f",
  "rgb": {
    "r": 142,
    "g": 128,
    "b": 47
  },
  "hsl": {
    "h": 51.158,
    "s": 50.265,
    "l": 37.059
  },
  "oklch": {
    "l": 0.5965,
    "c": 0.10191,
    "h": 99.4
  },
  "luminance": 0.21394
}

Semantic roles & 50–950 ramp

primary
#8E802F
secondary
#6470B5
accent
#63DA4E
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F07
muted
#807F7A

Preview Lab

Preview with #8E802F

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

Preview Lab → · Contrast checker → · Palette generator →

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