#8E8A2F#8E8A2F

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

Color values

HEX#8E8A2F
RGBrgb(142, 138, 47)
HSLhsl(57, 50%, 37%)
HSVhsv(57, 67%, 56%)
CMYKcmyk(0%, 2.8%, 66.9%, 44.3%)
CIE-LABlab(56.22, -10.20, 47.35)
CIE-LCHlch(56.22, 48.44, 102.15°)
OKLaboklab(61.91% -0.0323 0.1068)
OKLCHoklch(61.91% 0.112 106.8)
XYZxyz(20.7576, 24.1337, 6.2536)
Luminance0.2413 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E8A2F #2F338E
analogous
#8E5B2F #8E8A2F #638E2F
triadic
#8E8A2F #2F8E8A #8A2F8E
tetradic
#8E8A2F #2F8E5B #2F338E #8E2F63
square
#8E8A2F #2F8E5B #2F338E #8E2F63
split-complementary
#8E8A2F #2F638E #5B2F8E
monochromatic
#323111 #605D20 #8E8A2F #BCB73E #CEC96A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8E8A2F#FFFFFF#000000##000000
##8E8A2F1.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)
#968523
Deuteranopia (green-blind)
#978835
Tritanopia (blue-blind)
#988177
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8e8a2f;
/* rgb */ color: rgb(142, 138, 47);
/* oklch */ color: oklch(61.9% 0.112 106.8);
Tailwind
colors: {
  custom: {
    50: '#b2ab6d',
    500: '#8e8a2f',
    950: '#000000',
  },
}
SCSS
$custom: #8e8a2f;
$custom-light: #b2ab6d;
$custom-dark: #000000;
JSON
{
  "hex": "#8e8a2f",
  "rgb": {
    "r": 142,
    "g": 138,
    "b": 47
  },
  "hsl": {
    "h": 57.474,
    "s": 50.265,
    "l": 37.059
  },
  "oklch": {
    "l": 0.61909,
    "c": 0.11159,
    "h": 106.8
  },
  "luminance": 0.24133
}

Semantic roles & 50–950 ramp

primary
#8E8A2F
secondary
#6467B5
accent
#54DA4E
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#111007
muted
#807F7A

Preview Lab

Preview with #8E8A2F

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

Preview Lab → · Contrast checker → · Palette generator →

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