#8F831F#8F831F

#8F831F is a mid, moderate yellow. Relative luminance 0.222; OKLCH L 60.3% C 0.116 H 102.2°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#8F831F
RGBrgb(143, 131, 31)
HSLhsl(54, 64%, 34%)
HSVhsv(54, 78%, 56%)
CMYKcmyk(0%, 8.4%, 78.3%, 43.9%)
CIE-LABlab(54.21, -6.76, 51.71)
CIE-LCHlch(54.21, 52.15, 97.45°)
OKLaboklab(60.3% -0.0243 0.113)
OKLCHoklch(60.3% 0.116 102.2)
XYZxyz(19.6922, 22.1721, 4.5384)
Luminance0.2217 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F831F #1F2B8F
analogous
#8F4B1F #8F831F #638F1F
triadic
#8F831F #1F8F83 #831F8F
tetradic
#8F831F #1F8F4B #1F2B8F #8F1F63
square
#8F831F #1F8F4B #1F2B8F #8F1F63
split-complementary
#8F831F #1F638F #4B1F8F
monochromatic
#2A2709 #5D5514 #8F831F #C1B12A #D9CA4F

Accessibility & contrast

On white

3.86
#8F831F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#8F831F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F831F
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F831F#FFFFFF#000000##000000
##8F831F1.003.865.435.43
#FFFFFF3.861.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F08
Deuteranopia (green-blind)
#938426
Tritanopia (blue-blind)
#9A7970
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #8f831f;
/* rgb */ color: rgb(143, 131, 31);
/* oklch */ color: oklch(60.3% 0.116 102.2);
Tailwind
colors: {
  custom: {
    50: '#b3a663',
    500: '#8f831f',
    950: '#000000',
  },
}
SCSS
$custom: #8f831f;
$custom-light: #b3a663;
$custom-dark: #000000;
JSON
{
  "hex": "#8f831f",
  "rgb": {
    "r": 143,
    "g": 131,
    "b": 31
  },
  "hsl": {
    "h": 53.571,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.60295,
    "c": 0.11558,
    "h": 102.2
  },
  "luminance": 0.22171
}

Semantic roles & 50–950 ramp

primary
#8F831F
secondary
#4E5ABC
accent
#52E740
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8F831F

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

Preview Lab → · Contrast checker → · Palette generator →

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