#8F7D17#8F7D17

#8F7D17 is a mid, moderate yellow. Relative luminance 0.206; OKLCH L 58.9% C 0.115 H 98.3°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#8F7D17
RGBrgb(143, 125, 23)
HSLhsl(51, 72%, 33%)
HSVhsv(51, 84%, 56%)
CMYKcmyk(0%, 12.6%, 83.9%, 43.9%)
CIE-LABlab(52.48, -3.74, 52.76)
CIE-LCHlch(52.48, 52.89, 94.05°)
OKLaboklab(58.91% -0.0166 0.1136)
OKLCHoklch(58.91% 0.115 98.3)
XYZxyz(18.8170, 20.5697, 3.7897)
Luminance0.2057 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F7D17 #17298F
analogous
#8F4117 #8F7D17 #658F17
triadic
#8F7D17 #178F7D #7D178F
tetradic
#8F7D17 #178F41 #17298F #8F1765
square
#8F7D17 #178F41 #17298F #8F1765
split-complementary
#8F7D17 #17658F #41178F
monochromatic
#262106 #5A4F0F #8F7D17 #C4AB1F #E0C840

Accessibility & contrast

On white

4.11
#8F7D17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#8F7D17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F7D17
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F7D17#FFFFFF#000000##000000
##8F7D171.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A00
Deuteranopia (green-blind)
#8F801F
Tritanopia (blue-blind)
#9B736B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8f7d17;
/* rgb */ color: rgb(143, 125, 23);
/* oklch */ color: oklch(58.9% 0.115 98.3);
Tailwind
colors: {
  custom: {
    50: '#b4a25f',
    500: '#8f7d17',
    950: '#000000',
  },
}
SCSS
$custom: #8f7d17;
$custom-light: #b4a25f;
$custom-dark: #000000;
JSON
{
  "hex": "#8f7d17",
  "rgb": {
    "r": 143,
    "g": 125,
    "b": 23
  },
  "hsl": {
    "h": 51,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.58906,
    "c": 0.1148,
    "h": 98.3
  },
  "luminance": 0.20569
}

Semantic roles & 50–950 ramp

primary
#8F7D17
secondary
#4154C1
accent
#54EF39
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#120F05
muted
#817E79

Preview Lab

Preview with #8F7D17

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

Preview Lab → · Contrast checker → · Palette generator →

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