#8E8A2D#8E8A2D

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

Color values

HEX#8E8A2D
RGBrgb(142, 138, 45)
HSLhsl(58, 52%, 37%)
HSVhsv(58, 68%, 56%)
CMYKcmyk(0%, 2.8%, 68.3%, 44.3%)
CIE-LABlab(56.21, -10.32, 48.19)
CIE-LCHlch(56.21, 49.28, 102.08°)
OKLaboklab(61.89% -0.0328 0.1083)
OKLCHoklch(61.89% 0.113 106.9)
XYZxyz(20.7182, 24.1179, 6.0460)
Luminance0.2412 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E8A2D #2D318E
analogous
#8E5A2D #8E8A2D #628E2D
triadic
#8E8A2D #2D8E8A #8A2D8E
tetradic
#8E8A2D #2D8E5A #2D318E #8E2D62
square
#8E8A2D #2D8E5A #2D318E #8E2D62
split-complementary
#8E8A2D #2D628E #5A2D8E
monochromatic
#313010 #605D1E #8E8A2D #BCB73C #CFCA67

Accessibility & contrast

On white

3.61
#8E8A2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.82
#8E8A2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E8A2D
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E8A2D#FFFFFF#000000##000000
##8E8A2D1.003.615.825.82
#FFFFFF3.611.0021.0021.00
#0000005.8221.001.001.00
##0000005.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#968520
Deuteranopia (green-blind)
#988833
Tritanopia (blue-blind)
#988177
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8e8a2d;
/* rgb */ color: rgb(142, 138, 45);
/* oklch */ color: oklch(61.9% 0.113 106.9);
Tailwind
colors: {
  custom: {
    50: '#b2ab6c',
    500: '#8e8a2d',
    950: '#000000',
  },
}
SCSS
$custom: #8e8a2d;
$custom-light: #b2ab6c;
$custom-dark: #000000;
JSON
{
  "hex": "#8e8a2d",
  "rgb": {
    "r": 142,
    "g": 138,
    "b": 45
  },
  "hsl": {
    "h": 57.526,
    "s": 51.872,
    "l": 36.667
  },
  "oklch": {
    "l": 0.61891,
    "c": 0.11312,
    "h": 106.9
  },
  "luminance": 0.24117
}

Semantic roles & 50–950 ramp

primary
#8E8A2D
secondary
#6165B5
accent
#52DB4C
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#111007
muted
#807F7A

Preview Lab

Preview with #8E8A2D

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

Preview Lab → · Contrast checker → · Palette generator →

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