#8D7217#8D7217

#8D7217 is a mid, moderate yellow. Relative luminance 0.178; OKLCH L 56.3% C 0.107 H 90.8°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#8D7217
RGBrgb(141, 114, 23)
HSLhsl(46, 72%, 32%)
HSVhsv(46, 84%, 55%)
CMYKcmyk(0%, 19.1%, 83.7%, 44.7%)
CIE-LABlab(49.20, 1.53, 49.85)
CIE-LCHlch(49.20, 49.87, 88.24°)
OKLaboklab(56.27% -0.0015 0.1074)
OKLCHoklch(56.27% 0.107 90.8)
XYZxyz(17.1575, 17.7603, 3.3348)
Luminance0.1776 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D7217 #17328D
analogous
#8D3717 #8D7217 #6D8D17
triadic
#8D7217 #178D72 #72178D
tetradic
#8D7217 #178D37 #17328D #8D176D
square
#8D7217 #178D37 #17328D #8D176D
split-complementary
#8D7217 #176D8D #37178D
monochromatic
#241D06 #58470E #8D7217 #C29D20 #E0BB3F

Accessibility & contrast

On white

4.61
#8D7217 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#8D7217 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8D7217
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D7217#FFFFFF#000000##FFFFFF
##8D72171.004.614.554.61
#FFFFFF4.611.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807100
Deuteranopia (green-blind)
#87781D
Tritanopia (blue-blind)
#996761
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8d7217;
/* rgb */ color: rgb(141, 114, 23);
/* oklch */ color: oklch(56.3% 0.107 90.8);
Tailwind
colors: {
  custom: {
    50: '#b39a5e',
    500: '#8d7217',
    950: '#000000',
  },
}
SCSS
$custom: #8d7217;
$custom-light: #b39a5e;
$custom-dark: #000000;
JSON
{
  "hex": "#8d7217",
  "rgb": {
    "r": 141,
    "g": 114,
    "b": 23
  },
  "hsl": {
    "h": 46.271,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.56272,
    "c": 0.10739,
    "h": 90.8
  },
  "luminance": 0.17759
}

Semantic roles & 50–950 ramp

primary
#8D7217
secondary
#405DC0
accent
#63EF39
background
#FBF9F5
surface
#F6F2E9
border
#D0CCC5
text
#120E05
muted
#817E79

Preview Lab

Preview with #8D7217

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

Preview Lab → · Contrast checker → · Palette generator →

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