#8E8937#8E8937

#8E8937 is a mid, moderate yellow. Relative luminance 0.239; OKLCH L 61.8% C 0.104 H 105.8°. Best body text is #000000 at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#8E8937
RGBrgb(142, 137, 55)
HSLhsl(57, 44%, 39%)
HSVhsv(57, 61%, 56%)
CMYKcmyk(0%, 3.5%, 61.3%, 44.3%)
CIE-LABlab(56.01, -9.10, 43.52)
CIE-LCHlch(56.01, 44.46, 101.82°)
OKLaboklab(61.76% -0.0282 0.0999)
OKLCHoklch(61.76% 0.104 105.8)
XYZxyz(20.7913, 23.9186, 7.1352)
Luminance0.2392 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E8937 #373C8E
analogous
#8E5D37 #8E8937 #678E37
triadic
#8E8937 #378E89 #89378E
tetradic
#8E8937 #378E5D #373C8E #8E3767
square
#8E8937 #378E5D #373C8E #8E3767
split-complementary
#8E8937 #37678E #5D378E
monochromatic
#363415 #625E26 #8E8937 #B9B249 #CAC576

Accessibility & contrast

On white

3.63
#8E8937 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.78
#8E8937 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E8937
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E8937#FFFFFF#000000##000000
##8E89371.003.635.785.78
#FFFFFF3.631.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#94842E
Deuteranopia (green-blind)
#96883C
Tritanopia (blue-blind)
#988077
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8e8937;
/* rgb */ color: rgb(142, 137, 55);
/* oklch */ color: oklch(61.8% 0.104 105.8);
Tailwind
colors: {
  custom: {
    50: '#b1ab71',
    500: '#8e8937',
    950: '#000000',
  },
}
SCSS
$custom: #8e8937;
$custom-light: #b1ab71;
$custom-dark: #000000;
JSON
{
  "hex": "#8e8937",
  "rgb": {
    "r": 142,
    "g": 137,
    "b": 55
  },
  "hsl": {
    "h": 56.552,
    "s": 44.162,
    "l": 38.627
  },
  "oklch": {
    "l": 0.6176,
    "c": 0.10384,
    "h": 105.8
  },
  "luminance": 0.23918
}

Semantic roles & 50–950 ramp

primary
#8E8937
secondary
#6E72B3
accent
#5BD454
background
#FBFAF7
surface
#F6F4ED
border
#D0CEC8
text
#111008
muted
#807F7B

Preview Lab

Preview with #8E8937

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

Preview Lab → · Contrast checker → · Palette generator →

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