#8D7917#8D7917

#8D7917 is a mid, moderate yellow. Relative luminance 0.194; OKLCH L 57.8% C 0.112 H 96.6°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#8D7917
RGBrgb(141, 121, 23)
HSLhsl(50, 72%, 32%)
HSVhsv(50, 84%, 55%)
CMYKcmyk(0%, 14.2%, 83.7%, 44.7%)
CIE-LABlab(51.15, -2.44, 51.54)
CIE-LCHlch(51.15, 51.60, 92.71°)
OKLaboklab(57.81% -0.0128 0.1111)
OKLCHoklch(57.81% 0.112 96.6)
XYZxyz(17.9775, 19.4003, 3.6082)
Luminance0.1940 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D7917 #172B8D
analogous
#8D3E17 #8D7917 #668D17
triadic
#8D7917 #178D79 #79178D
tetradic
#8D7917 #178D3E #172B8D #8D1766
square
#8D7917 #178D3E #172B8D #8D1766
split-complementary
#8D7917 #17668D #3E178D
monochromatic
#241F06 #584C0E #8D7917 #C2A620 #E0C43F

Accessibility & contrast

On white

4.30
#8D7917 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#8D7917 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D7917
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D7917#FFFFFF#000000##000000
##8D79171.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#867600
Deuteranopia (green-blind)
#8C7D1F
Tritanopia (blue-blind)
#996F67
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8d7917;
/* rgb */ color: rgb(141, 121, 23);
/* oklch */ color: oklch(57.8% 0.112 96.6);
Tailwind
colors: {
  custom: {
    50: '#b29f5e',
    500: '#8d7917',
    950: '#000000',
  },
}
SCSS
$custom: #8d7917;
$custom-light: #b29f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#8d7917",
  "rgb": {
    "r": 141,
    "g": 121,
    "b": 23
  },
  "hsl": {
    "h": 49.831,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.57811,
    "c": 0.11179,
    "h": 96.6
  },
  "luminance": 0.19399
}

Semantic roles & 50–950 ramp

primary
#8D7917
secondary
#4056C0
accent
#58EF39
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#110E05
muted
#807E79

Preview Lab

Preview with #8D7917

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

Preview Lab → · Contrast checker → · Palette generator →

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