#8E8A20#8E8A20

#8E8A20 is a mid, vivid yellow. Relative luminance 0.240; OKLCH L 61.8% C 0.122 H 107.2°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#8E8A20
RGBrgb(142, 138, 32)
HSLhsl(58, 63%, 34%)
HSVhsv(58, 77%, 56%)
CMYKcmyk(0%, 2.8%, 77.5%, 44.3%)
CIE-LABlab(56.12, -10.99, 53.09)
CIE-LCHlch(56.12, 54.21, 101.69°)
OKLaboklab(61.8% -0.036 0.1162)
OKLCHoklch(61.8% 0.122 107.2)
XYZxyz(20.5053, 24.0327, 4.9249)
Luminance0.2403 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E8A20 #20248E
analogous
#8E5320 #8E8A20 #5B8E20
triadic
#8E8A20 #208E8A #8A208E
tetradic
#8E8A20 #208E53 #20248E #8E205B
square
#8E8A20 #208E53 #20248E #8E205B
split-complementary
#8E8A20 #205B8E #53208E
monochromatic
#2A2909 #5C5915 #8E8A20 #C0BB2B #D8D351

Accessibility & contrast

On white

3.62
#8E8A20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.81
#8E8A20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E8A20
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E8A20#FFFFFF#000000##000000
##8E8A201.003.625.815.81
#FFFFFF3.621.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#968406
Deuteranopia (green-blind)
#988829
Tritanopia (blue-blind)
#998076
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8e8a20;
/* rgb */ color: rgb(142, 138, 32);
/* oklch */ color: oklch(61.8% 0.122 107.2);
Tailwind
colors: {
  custom: {
    50: '#b2ab65',
    500: '#8e8a20',
    950: '#000000',
  },
}
SCSS
$custom: #8e8a20;
$custom-light: #b2ab65;
$custom-dark: #000000;
JSON
{
  "hex": "#8e8a20",
  "rgb": {
    "r": 142,
    "g": 138,
    "b": 32
  },
  "hsl": {
    "h": 57.818,
    "s": 63.218,
    "l": 34.118
  },
  "oklch": {
    "l": 0.61796,
    "c": 0.12164,
    "h": 107.2
  },
  "luminance": 0.24032
}

Semantic roles & 50–950 ramp

primary
#8E8A20
secondary
#4F53BB
accent
#48E642
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8E8A20

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

Preview Lab → · Contrast checker → · Palette generator →

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