#8E8A2A#8E8A2A

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

Color values

HEX#8E8A2A
RGBrgb(142, 138, 42)
HSLhsl(58, 54%, 36%)
HSVhsv(58, 70%, 56%)
CMYKcmyk(0%, 2.8%, 70.4%, 44.3%)
CIE-LABlab(56.18, -10.49, 49.41)
CIE-LCHlch(56.18, 50.51, 101.99°)
OKLaboklab(61.87% -0.0337 0.1103)
OKLCHoklch(61.87% 0.115 107)
XYZxyz(20.6625, 24.0956, 5.7525)
Luminance0.2409 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E8A2A #2A2E8E
analogous
#8E582A #8E8A2A #608E2A
triadic
#8E8A2A #2A8E8A #8A2A8E
tetradic
#8E8A2A #2A8E58 #2A2E8E #8E2A60
square
#8E8A2A #2A8E58 #2A2E8E #8E2A60
split-complementary
#8E8A2A #2A608E #582A8E
monochromatic
#302E0E #5F5C1C #8E8A2A #BDB838 #D1CC62

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8E8A2A#FFFFFF#000000##000000
##8E8A2A1.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)
#96851B
Deuteranopia (green-blind)
#988831
Tritanopia (blue-blind)
#988177
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8e8a2a;
/* rgb */ color: rgb(142, 138, 42);
/* oklch */ color: oklch(61.9% 0.115 107.0);
Tailwind
colors: {
  custom: {
    50: '#b2ab6a',
    500: '#8e8a2a',
    950: '#000000',
  },
}
SCSS
$custom: #8e8a2a;
$custom-light: #b2ab6a;
$custom-dark: #000000;
JSON
{
  "hex": "#8e8a2a",
  "rgb": {
    "r": 142,
    "g": 138,
    "b": 42
  },
  "hsl": {
    "h": 57.6,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.61866,
    "c": 0.1153,
    "h": 107
  },
  "luminance": 0.24095
}

Semantic roles & 50–950 ramp

primary
#8E8A2A
secondary
#5D61B6
accent
#50DE4A
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111007
muted
#807F7A

Preview Lab

Preview with #8E8A2A

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

Preview Lab → · Contrast checker → · Palette generator →

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