#8D7A17#8D7A17

#8D7A17 is a mid, moderate yellow. Relative luminance 0.196; OKLCH L 58.0% C 0.113 H 97.3°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#8D7A17
RGBrgb(141, 122, 23)
HSLhsl(50, 72%, 32%)
HSVhsv(50, 84%, 55%)
CMYKcmyk(0%, 13.5%, 83.7%, 44.7%)
CIE-LABlab(51.43, -3.00, 51.78)
CIE-LCHlch(51.43, 51.87, 93.31°)
OKLaboklab(58.03% -0.0144 0.1116)
OKLCHoklch(58.03% 0.113 97.3)
XYZxyz(18.0997, 19.6446, 3.6489)
Luminance0.1964 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D7A17 #172A8D
analogous
#8D3F17 #8D7A17 #658D17
triadic
#8D7A17 #178D7A #7A178D
tetradic
#8D7A17 #178D3F #172A8D #8D1765
square
#8D7A17 #178D3F #172A8D #8D1765
split-complementary
#8D7A17 #17658D #3F178D
monochromatic
#241F06 #584C0E #8D7A17 #C2A820 #E0C63F

Accessibility & contrast

On white

4.26
#8D7A17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#8D7A17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D7A17
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D7A17#FFFFFF#000000##000000
##8D7A171.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#877700
Deuteranopia (green-blind)
#8C7D1F
Tritanopia (blue-blind)
#997068
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8d7a17;
/* rgb */ color: rgb(141, 122, 23);
/* oklch */ color: oklch(58.0% 0.113 97.3);
Tailwind
colors: {
  custom: {
    50: '#b2a05f',
    500: '#8d7a17',
    950: '#000000',
  },
}
SCSS
$custom: #8d7a17;
$custom-light: #b2a05f;
$custom-dark: #000000;
JSON
{
  "hex": "#8d7a17",
  "rgb": {
    "r": 141,
    "g": 122,
    "b": 23
  },
  "hsl": {
    "h": 50.339,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.58033,
    "c": 0.11251,
    "h": 97.3
  },
  "luminance": 0.19644
}

Semantic roles & 50–950 ramp

primary
#8D7A17
secondary
#4055C0
accent
#56EF39
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#110E05
muted
#807E79

Preview Lab

Preview with #8D7A17

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

Preview Lab → · Contrast checker → · Palette generator →

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