#8F7F2F#8F7F2F

#8F7F2F is a mid, moderate yellow. Relative luminance 0.212; OKLCH L 59.5% C 0.101 H 97.9°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#8F7F2F
RGBrgb(143, 127, 47)
HSLhsl(50, 51%, 37%)
HSVhsv(50, 67%, 56%)
CMYKcmyk(0%, 11.2%, 67.1%, 43.9%)
CIE-LABlab(53.19, -3.70, 44.21)
CIE-LCHlch(53.19, 44.37, 94.79°)
OKLaboklab(59.53% -0.0139 0.1002)
OKLCHoklch(59.53% 0.101 97.9)
XYZxyz(19.4310, 21.2245, 5.7620)
Luminance0.2122 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F7F2F #2F3F8F
analogous
#8F4F2F #8F7F2F #6F8F2F
triadic
#8F7F2F #2F8F7F #7F2F8F
tetradic
#8F7F2F #2F8F4F #2F3F8F #8F2F6F
square
#8F7F2F #2F8F4F #2F3F8F #8F2F6F
split-complementary
#8F7F2F #2F6F8F #4F2F8F
monochromatic
#332D11 #615620 #8F7F2F #BDA83E #CEBD6A

Accessibility & contrast

On white

4.00
#8F7F2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#8F7F2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F7F2F
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F7F2F#FFFFFF#000000##000000
##8F7F2F1.004.005.245.24
#FFFFFF4.001.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7C25
Deuteranopia (green-blind)
#908133
Tritanopia (blue-blind)
#9A766E
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8f7f2f;
/* rgb */ color: rgb(143, 127, 47);
/* oklch */ color: oklch(59.5% 0.101 97.9);
Tailwind
colors: {
  custom: {
    50: '#b3a36c',
    500: '#8f7f2f',
    950: '#000000',
  },
}
SCSS
$custom: #8f7f2f;
$custom-light: #b3a36c;
$custom-dark: #000000;
JSON
{
  "hex": "#8f7f2f",
  "rgb": {
    "r": 143,
    "g": 127,
    "b": 47
  },
  "hsl": {
    "h": 50,
    "s": 50.526,
    "l": 37.255
  },
  "oklch": {
    "l": 0.59526,
    "c": 0.10111,
    "h": 97.9
  },
  "luminance": 0.21224
}

Semantic roles & 50–950 ramp

primary
#8F7F2F
secondary
#6572B5
accent
#65DA4E
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F07
muted
#807F7A

Preview Lab

Preview with #8F7F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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