#8E7F2F#8E7F2F

#8E7F2F is a mid, moderate yellow. Relative luminance 0.211; OKLCH L 59.4% C 0.101 H 98.6°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#8E7F2F
RGBrgb(142, 127, 47)
HSLhsl(51, 50%, 37%)
HSVhsv(51, 67%, 56%)
CMYKcmyk(0%, 10.6%, 66.9%, 44.3%)
CIE-LABlab(53.10, -4.16, 44.08)
CIE-LCHlch(53.10, 44.28, 95.39°)
OKLaboklab(59.43% -0.0151 0.0999)
OKLCHoklch(59.43% 0.101 98.6)
XYZxyz(19.2586, 21.1356, 5.7539)
Luminance0.2114 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E7F2F #2F3E8E
analogous
#8E4F2F #8E7F2F #6E8E2F
triadic
#8E7F2F #2F8E7F #7F2F8E
tetradic
#8E7F2F #2F8E4F #2F3E8E #8E2F6E
square
#8E7F2F #2F8E4F #2F3E8E #8E2F6E
split-complementary
#8E7F2F #2F6E8E #4F2F8E
monochromatic
#322D11 #605620 #8E7F2F #BCA83E #CEBE6A

Accessibility & contrast

On white

4.02
#8E7F2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#8E7F2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E7F2F
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E7F2F#FFFFFF#000000##000000
##8E7F2F1.004.025.235.23
#FFFFFF4.021.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7C25
Deuteranopia (green-blind)
#8F8133
Tritanopia (blue-blind)
#99766E
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8e7f2f;
/* rgb */ color: rgb(142, 127, 47);
/* oklch */ color: oklch(59.4% 0.101 98.6);
Tailwind
colors: {
  custom: {
    50: '#b2a36c',
    500: '#8e7f2f',
    950: '#000000',
  },
}
SCSS
$custom: #8e7f2f;
$custom-light: #b2a36c;
$custom-dark: #000000;
JSON
{
  "hex": "#8e7f2f",
  "rgb": {
    "r": 142,
    "g": 127,
    "b": 47
  },
  "hsl": {
    "h": 50.526,
    "s": 50.265,
    "l": 37.059
  },
  "oklch": {
    "l": 0.59426,
    "c": 0.10104,
    "h": 98.6
  },
  "luminance": 0.21135
}

Semantic roles & 50–950 ramp

primary
#8E7F2F
secondary
#6471B5
accent
#64DA4E
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F07
muted
#807F7A

Preview Lab

Preview with #8E7F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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