#8F7F2A#8F7F2A

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

Color values

HEX#8F7F2A
RGBrgb(143, 127, 42)
HSLhsl(50, 55%, 36%)
HSVhsv(50, 71%, 56%)
CMYKcmyk(0%, 11.2%, 70.6%, 43.9%)
CIE-LABlab(53.15, -4.01, 46.38)
CIE-LCHlch(53.15, 46.56, 94.94°)
OKLaboklab(59.48% -0.0153 0.1039)
OKLCHoklch(59.48% 0.105 98.4)
XYZxyz(19.3359, 21.1865, 5.2610)
Luminance0.2119 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F7F2A #2A3A8F
analogous
#8F4D2A #8F7F2A #6D8F2A
triadic
#8F7F2A #2A8F7F #7F2A8F
tetradic
#8F7F2A #2A8F4D #2A3A8F #8F2A6D
square
#8F7F2A #2A8F4D #2A3A8F #8F2A6D
split-complementary
#8F7F2A #2A6D8F #4D2A8F
monochromatic
#302B0E #60551C #8F7F2A #BEA938 #D1BF62

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8F7F2A#FFFFFF#000000##000000
##8F7F2A1.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)
#8C7C1E
Deuteranopia (green-blind)
#90812F
Tritanopia (blue-blind)
#9A756E
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8f7f2a;
/* rgb */ color: rgb(143, 127, 42);
/* oklch */ color: oklch(59.5% 0.105 98.4);
Tailwind
colors: {
  custom: {
    50: '#b3a369',
    500: '#8f7f2a',
    950: '#000000',
  },
}
SCSS
$custom: #8f7f2a;
$custom-light: #b3a369;
$custom-dark: #000000;
JSON
{
  "hex": "#8f7f2a",
  "rgb": {
    "r": 143,
    "g": 127,
    "b": 42
  },
  "hsl": {
    "h": 50.495,
    "s": 54.595,
    "l": 36.275
  },
  "oklch": {
    "l": 0.5948,
    "c": 0.105,
    "h": 98.4
  },
  "luminance": 0.21186
}

Semantic roles & 50–950 ramp

primary
#8F7F2A
secondary
#5E6CB7
accent
#61DE4A
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8F7F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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