#8D731F#8D731F

#8D731F is a mid, moderate yellow. Relative luminance 0.180; OKLCH L 56.5% C 0.104 H 90.8°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#8D731F
RGBrgb(141, 115, 31)
HSLhsl(46, 64%, 34%)
HSVhsv(46, 78%, 55%)
CMYKcmyk(0%, 18.4%, 78%, 44.7%)
CIE-LABlab(49.53, 1.27, 47.27)
CIE-LCHlch(49.53, 47.29, 88.46°)
OKLaboklab(56.54% -0.0014 0.1036)
OKLCHoklch(56.54% 0.104 90.8)
XYZxyz(17.3636, 18.0242, 3.8605)
Luminance0.1802 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D731F #1F398D
analogous
#8D3C1F #8D731F #708D1F
triadic
#8D731F #1F8D73 #731F8D
tetradic
#8D731F #1F8D3C #1F398D #8D1F70
square
#8D731F #1F8D3C #1F398D #8D1F70
split-complementary
#8D731F #1F708D #3C1F8D
monochromatic
#292109 #5B4A14 #8D731F #BF9C2A #D8B84E

Accessibility & contrast

On white

4.56
#8D731F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#8D731F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D731F
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D731F#FFFFFF#000000##000000
##8D731F1.004.564.604.60
#FFFFFF4.561.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#817110
Deuteranopia (green-blind)
#877924
Tritanopia (blue-blind)
#996963
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #8d731f;
/* rgb */ color: rgb(141, 115, 31);
/* oklch */ color: oklch(56.5% 0.104 90.8);
Tailwind
colors: {
  custom: {
    50: '#b29a61',
    500: '#8d731f',
    950: '#000000',
  },
}
SCSS
$custom: #8d731f;
$custom-light: #b29a61;
$custom-dark: #000000;
JSON
{
  "hex": "#8d731f",
  "rgb": {
    "r": 141,
    "g": 115,
    "b": 31
  },
  "hsl": {
    "h": 45.818,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.5654,
    "c": 0.10364,
    "h": 90.8
  },
  "luminance": 0.18023
}

Semantic roles & 50–950 ramp

primary
#8D731F
secondary
#4D67BB
accent
#68E741
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E05
muted
#807E7A

Preview Lab

Preview with #8D731F

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

Preview Lab → · Contrast checker → · Palette generator →

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