#8D731B#8D731B

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

Color values

HEX#8D731B
RGBrgb(141, 115, 27)
HSLhsl(46, 68%, 33%)
HSVhsv(46, 81%, 55%)
CMYKcmyk(0%, 18.4%, 80.9%, 44.7%)
CIE-LABlab(49.50, 1.10, 48.74)
CIE-LCHlch(49.50, 48.75, 88.70°)
OKLaboklab(56.51% -0.0024 0.1059)
OKLCHoklch(56.51% 0.106 91.3)
XYZxyz(17.3141, 18.0044, 3.6000)
Luminance0.1800 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D731B #1B358D
analogous
#8D3A1B #8D731B #6E8D1B
triadic
#8D731B #1B8D73 #731B8D
tetradic
#8D731B #1B8D3A #1B358D #8D1B6E
square
#8D731B #1B8D3A #1B358D #8D1B6E
split-complementary
#8D731B #1B6E8D #3A1B8D
monochromatic
#261F07 #5A4911 #8D731B #C09D25 #DCBA47

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8D731B#FFFFFF#000000##000000
##8D731B1.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)
#817107
Deuteranopia (green-blind)
#877921
Tritanopia (blue-blind)
#996962
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #8d731b;
/* rgb */ color: rgb(141, 115, 27);
/* oklch */ color: oklch(56.5% 0.106 91.3);
Tailwind
colors: {
  custom: {
    50: '#b29a5f',
    500: '#8d731b',
    950: '#000000',
  },
}
SCSS
$custom: #8d731b;
$custom-light: #b29a5f;
$custom-dark: #000000;
JSON
{
  "hex": "#8d731b",
  "rgb": {
    "r": 141,
    "g": 115,
    "b": 27
  },
  "hsl": {
    "h": 46.316,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.56513,
    "c": 0.10592,
    "h": 91.3
  },
  "luminance": 0.18003
}

Semantic roles & 50–950 ramp

primary
#8D731B
secondary
#4662BD
accent
#65EB3D
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#110E05
muted
#807E79

Preview Lab

Preview with #8D731B

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

Preview Lab → · Contrast checker → · Palette generator →

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