#8F731F#8F731F

#8F731F is a mid, moderate yellow. Relative luminance 0.182; OKLCH L 56.8% C 0.104 H 89.4°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#8F731F
RGBrgb(143, 115, 31)
HSLhsl(45, 64%, 34%)
HSVhsv(45, 78%, 56%)
CMYKcmyk(0%, 19.6%, 78.3%, 43.9%)
CIE-LABlab(49.74, 2.21, 47.55)
CIE-LCHlch(49.74, 47.60, 87.34°)
OKLaboklab(56.76% 0.0011 0.1041)
OKLCHoklch(56.76% 0.104 89.4)
XYZxyz(17.7068, 18.2012, 3.8766)
Luminance0.1820 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F731F #1F3B8F
analogous
#8F3B1F #8F731F #738F1F
triadic
#8F731F #1F8F73 #731F8F
tetradic
#8F731F #1F8F3B #1F3B8F #8F1F73
square
#8F731F #1F8F3B #1F3B8F #8F1F73
split-complementary
#8F731F #1F738F #3B1F8F
monochromatic
#2A2209 #5D4B14 #8F731F #C19B2A #D9B74F

Accessibility & contrast

On white

4.53
#8F731F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#8F731F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F731F
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F731F#FFFFFF#000000##000000
##8F731F1.004.534.644.64
#FFFFFF4.531.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#817210
Deuteranopia (green-blind)
#887924
Tritanopia (blue-blind)
#9B6963
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #8f731f;
/* rgb */ color: rgb(143, 115, 31);
/* oklch */ color: oklch(56.8% 0.104 89.4);
Tailwind
colors: {
  custom: {
    50: '#b49b61',
    500: '#8f731f',
    950: '#000000',
  },
}
SCSS
$custom: #8f731f;
$custom-light: #b49b61;
$custom-dark: #000000;
JSON
{
  "hex": "#8f731f",
  "rgb": {
    "r": 143,
    "g": 115,
    "b": 31
  },
  "hsl": {
    "h": 45,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.56757,
    "c": 0.10413,
    "h": 89.4
  },
  "luminance": 0.182
}

Semantic roles & 50–950 ramp

primary
#8F731F
secondary
#4E69BC
accent
#6AE740
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#120E05
muted
#817E7A

Preview Lab

Preview with #8F731F

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

Preview Lab → · Contrast checker → · Palette generator →

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