#8F7F2B#8F7F2B

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

Color values

HEX#8F7F2B
RGBrgb(143, 127, 43)
HSLhsl(50, 54%, 36%)
HSVhsv(50, 70%, 56%)
CMYKcmyk(0%, 11.2%, 69.9%, 43.9%)
CIE-LABlab(53.16, -3.95, 45.96)
CIE-LCHlch(53.16, 46.13, 94.91°)
OKLaboklab(59.49% -0.0151 0.1032)
OKLCHoklch(59.49% 0.104 98.3)
XYZxyz(19.3540, 21.1937, 5.3564)
Luminance0.2119 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F7F2B #2B3B8F
analogous
#8F4D2B #8F7F2B #6D8F2B
triadic
#8F7F2B #2B8F7F #7F2B8F
tetradic
#8F7F2B #2B8F4D #2B3B8F #8F2B6D
square
#8F7F2B #2B8F4D #2B3B8F #8F2B6D
split-complementary
#8F7F2B #2B6D8F #4D2B8F
monochromatic
#312B0F #60551D #8F7F2B #BEA939 #D0BF64

Accessibility & contrast

On white

4.01
#8F7F2B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##8F7F2B#FFFFFF#000000##000000
##8F7F2B1.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8f7f2b;
/* rgb */ color: rgb(143, 127, 43);
/* oklch */ color: oklch(59.5% 0.104 98.3);
Tailwind
colors: {
  custom: {
    50: '#b3a369',
    500: '#8f7f2b',
    950: '#000000',
  },
}
SCSS
$custom: #8f7f2b;
$custom-light: #b3a369;
$custom-dark: #000000;
JSON
{
  "hex": "#8f7f2b",
  "rgb": {
    "r": 143,
    "g": 127,
    "b": 43
  },
  "hsl": {
    "h": 50.4,
    "s": 53.763,
    "l": 36.471
  },
  "oklch": {
    "l": 0.59489,
    "c": 0.10425,
    "h": 98.3
  },
  "luminance": 0.21193
}

Semantic roles & 50–950 ramp

primary
#8F7F2B
secondary
#5F6DB7
accent
#62DD4B
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F07
muted
#807F7A

Preview Lab

Preview with #8F7F2B

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

Preview Lab → · Contrast checker → · Palette generator →

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