#8F7F2D#8F7F2D

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

Color values

HEX#8F7F2D
RGBrgb(143, 127, 45)
HSLhsl(50, 52%, 37%)
HSVhsv(50, 69%, 56%)
CMYKcmyk(0%, 11.2%, 68.5%, 43.9%)
CIE-LABlab(53.18, -3.83, 45.10)
CIE-LCHlch(53.18, 45.26, 94.85°)
OKLaboklab(59.51% -0.0145 0.1017)
OKLCHoklch(59.51% 0.103 98.1)
XYZxyz(19.3916, 21.2088, 5.5544)
Luminance0.2121 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F7F2D #2D3D8F
analogous
#8F4E2D #8F7F2D #6E8F2D
triadic
#8F7F2D #2D8F7F #7F2D8F
tetradic
#8F7F2D #2D8F4E #2D3D8F #8F2D6E
square
#8F7F2D #2D8F4E #2D3D8F #8F2D6E
split-complementary
#8F7F2D #2D6E8F #4E2D8F
monochromatic
#322C10 #60561E #8F7F2D #BEA83C #CFBE67

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8F7F2D#FFFFFF#000000##000000
##8F7F2D1.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)
#8B7C22
Deuteranopia (green-blind)
#908131
Tritanopia (blue-blind)
#9A766E
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8f7f2d;
/* rgb */ color: rgb(143, 127, 45);
/* oklch */ color: oklch(59.5% 0.103 98.1);
Tailwind
colors: {
  custom: {
    50: '#b3a36a',
    500: '#8f7f2d',
    950: '#000000',
  },
}
SCSS
$custom: #8f7f2d;
$custom-light: #b3a36a;
$custom-dark: #000000;
JSON
{
  "hex": "#8f7f2d",
  "rgb": {
    "r": 143,
    "g": 127,
    "b": 45
  },
  "hsl": {
    "h": 50.204,
    "s": 52.128,
    "l": 36.863
  },
  "oklch": {
    "l": 0.59507,
    "c": 0.10271,
    "h": 98.1
  },
  "luminance": 0.21208
}

Semantic roles & 50–950 ramp

primary
#8F7F2D
secondary
#6270B6
accent
#64DC4C
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F07
muted
#807F7A

Preview Lab

Preview with #8F7F2D

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

Preview Lab → · Contrast checker → · Palette generator →

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