#8F731B#8F731B

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

Color values

HEX#8F731B
RGBrgb(143, 115, 27)
HSLhsl(46, 68%, 33%)
HSVhsv(46, 81%, 56%)
CMYKcmyk(0%, 19.6%, 81.1%, 43.9%)
CIE-LABlab(49.72, 2.04, 49.02)
CIE-LCHlch(49.72, 49.06, 87.61°)
OKLaboklab(56.73% 0.0002 0.1064)
OKLCHoklch(56.73% 0.106 89.9)
XYZxyz(17.6573, 18.1814, 3.6160)
Luminance0.1818 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F731B #1B378F
analogous
#8F391B #8F731B #718F1B
triadic
#8F731B #1B8F73 #731B8F
tetradic
#8F731B #1B8F39 #1B378F #8F1B71
square
#8F731B #1B8F39 #1B378F #8F1B71
split-complementary
#8F731B #1B718F #391B8F
monochromatic
#282008 #5C4A11 #8F731B #C29C25 #DCB948

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8F731B#FFFFFF#000000##000000
##8F731B1.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)
#817207
Deuteranopia (green-blind)
#887920
Tritanopia (blue-blind)
#9B6862
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #8f731b;
/* rgb */ color: rgb(143, 115, 27);
/* oklch */ color: oklch(56.7% 0.106 89.9);
Tailwind
colors: {
  custom: {
    50: '#b49a60',
    500: '#8f731b',
    950: '#000000',
  },
}
SCSS
$custom: #8f731b;
$custom-light: #b49a60;
$custom-dark: #000000;
JSON
{
  "hex": "#8f731b",
  "rgb": {
    "r": 143,
    "g": 115,
    "b": 27
  },
  "hsl": {
    "h": 45.517,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.56731,
    "c": 0.10637,
    "h": 89.9
  },
  "luminance": 0.1818
}

Semantic roles & 50–950 ramp

primary
#8F731B
secondary
#4864BE
accent
#67EB3D
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#120E05
muted
#817E79

Preview Lab

Preview with #8F731B

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

Preview Lab → · Contrast checker → · Palette generator →

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