#8D7F17#8D7F17

#8D7F17 is a mid, moderate yellow. Relative luminance 0.209; OKLCH L 59.2% C 0.116 H 101.0°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#8D7F17
RGBrgb(141, 127, 23)
HSLhsl(53, 72%, 32%)
HSVhsv(53, 84%, 55%)
CMYKcmyk(0%, 9.9%, 83.7%, 44.7%)
CIE-LABlab(52.84, -5.78, 53.00)
CIE-LCHlch(52.84, 53.32, 96.23°)
OKLaboklab(59.15% -0.0222 0.1142)
OKLCHoklch(59.15% 0.116 101)
XYZxyz(18.7295, 20.9042, 3.8588)
Luminance0.2090 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D7F17 #17258D
analogous
#8D4417 #8D7F17 #608D17
triadic
#8D7F17 #178D7F #7F178D
tetradic
#8D7F17 #178D44 #17258D #8D1760
square
#8D7F17 #178D44 #17258D #8D1760
split-complementary
#8D7F17 #17608D #44178D
monochromatic
#242006 #58500E #8D7F17 #C2AE20 #E0CD3F

Accessibility & contrast

On white

4.05
#8D7F17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#8D7F17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D7F17
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D7F17#FFFFFF#000000##000000
##8D7F171.004.055.185.18
#FFFFFF4.051.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B00
Deuteranopia (green-blind)
#908120
Tritanopia (blue-blind)
#99756C
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8d7f17;
/* rgb */ color: rgb(141, 127, 23);
/* oklch */ color: oklch(59.2% 0.116 101.0);
Tailwind
colors: {
  custom: {
    50: '#b2a35f',
    500: '#8d7f17',
    950: '#000000',
  },
}
SCSS
$custom: #8d7f17;
$custom-light: #b2a35f;
$custom-dark: #000000;
JSON
{
  "hex": "#8d7f17",
  "rgb": {
    "r": 141,
    "g": 127,
    "b": 23
  },
  "hsl": {
    "h": 52.881,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.59153,
    "c": 0.11637,
    "h": 101
  },
  "luminance": 0.20903
}

Semantic roles & 50–950 ramp

primary
#8D7F17
secondary
#404FC0
accent
#4FEF39
background
#FBFAF5
surface
#F6F3EA
border
#D0CDC6
text
#110F05
muted
#807F79

Preview Lab

Preview with #8D7F17

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

Preview Lab → · Contrast checker → · Palette generator →

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