#8E8A31#8E8A31

#8E8A31 is a mid, moderate yellow. Relative luminance 0.241; OKLCH L 61.9% C 0.110 H 106.7°. Best body text is #000000 at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#8E8A31
RGBrgb(142, 138, 49)
HSLhsl(57, 49%, 37%)
HSVhsv(57, 65%, 56%)
CMYKcmyk(0%, 2.8%, 65.5%, 44.3%)
CIE-LABlab(56.24, -10.07, 46.50)
CIE-LCHlch(56.24, 47.58, 102.22°)
OKLaboklab(61.93% -0.0317 0.1053)
OKLCHoklch(61.93% 0.11 106.7)
XYZxyz(20.7989, 24.1502, 6.4710)
Luminance0.2415 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E8A31 #31358E
analogous
#8E5B31 #8E8A31 #648E31
triadic
#8E8A31 #318E8A #8A318E
tetradic
#8E8A31 #318E5B #31358E #8E3164
square
#8E8A31 #318E5B #31358E #8E3164
split-complementary
#8E8A31 #31648E #5B318E
monochromatic
#333212 #615E21 #8E8A31 #BBB641 #CDC86D

Accessibility & contrast

On white

3.60
#8E8A31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.83
#8E8A31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E8A31
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E8A31#FFFFFF#000000##000000
##8E8A311.003.605.835.83
#FFFFFF3.601.0021.0021.00
#0000005.8321.001.001.00
##0000005.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#958526
Deuteranopia (green-blind)
#978836
Tritanopia (blue-blind)
#988178
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8e8a31;
/* rgb */ color: rgb(142, 138, 49);
/* oklch */ color: oklch(61.9% 0.110 106.7);
Tailwind
colors: {
  custom: {
    50: '#b2ab6e',
    500: '#8e8a31',
    950: '#000000',
  },
}
SCSS
$custom: #8e8a31;
$custom-light: #b2ab6e;
$custom-dark: #000000;
JSON
{
  "hex": "#8e8a31",
  "rgb": {
    "r": 142,
    "g": 138,
    "b": 49
  },
  "hsl": {
    "h": 57.419,
    "s": 48.691,
    "l": 37.451
  },
  "oklch": {
    "l": 0.61927,
    "c": 0.11,
    "h": 106.7
  },
  "luminance": 0.24149
}

Semantic roles & 50–950 ramp

primary
#8E8A31
secondary
#676AB4
accent
#55D850
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#111007
muted
#807F7A

Preview Lab

Preview with #8E8A31

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

Preview Lab → · Contrast checker → · Palette generator →

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