#8F7B17#8F7B17

#8F7B17 is a mid, moderate yellow. Relative luminance 0.201; OKLCH L 58.5% C 0.113 H 96.8°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#8F7B17
RGBrgb(143, 123, 23)
HSLhsl(50, 72%, 33%)
HSVhsv(50, 84%, 56%)
CMYKcmyk(0%, 14%, 83.9%, 43.9%)
CIE-LABlab(51.91, -2.62, 52.28)
CIE-LCHlch(51.91, 52.34, 92.87°)
OKLaboklab(58.46% -0.0134 0.1126)
OKLCHoklch(58.46% 0.113 96.8)
XYZxyz(18.5663, 20.0685, 3.7061)
Luminance0.2007 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F7B17 #172B8F
analogous
#8F3F17 #8F7B17 #678F17
triadic
#8F7B17 #178F7B #7B178F
tetradic
#8F7B17 #178F3F #172B8F #8F1767
square
#8F7B17 #178F3F #172B8F #8F1767
split-complementary
#8F7B17 #17678F #3F178F
monochromatic
#262006 #5A4E0F #8F7B17 #C4A81F #E0C640

Accessibility & contrast

On white

4.19
#8F7B17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#8F7B17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F7B17
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F7B17#FFFFFF#000000##000000
##8F7B171.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#897800
Deuteranopia (green-blind)
#8E7F1F
Tritanopia (blue-blind)
#9B7169
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8f7b17;
/* rgb */ color: rgb(143, 123, 23);
/* oklch */ color: oklch(58.5% 0.113 96.8);
Tailwind
colors: {
  custom: {
    50: '#b4a05f',
    500: '#8f7b17',
    950: '#000000',
  },
}
SCSS
$custom: #8f7b17;
$custom-light: #b4a05f;
$custom-dark: #000000;
JSON
{
  "hex": "#8f7b17",
  "rgb": {
    "r": 143,
    "g": 123,
    "b": 23
  },
  "hsl": {
    "h": 50,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.58462,
    "c": 0.11335,
    "h": 96.8
  },
  "luminance": 0.20067
}

Semantic roles & 50–950 ramp

primary
#8F7B17
secondary
#4156C1
accent
#57EF39
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#120E05
muted
#817E79

Preview Lab

Preview with #8F7B17

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

Preview Lab → · Contrast checker → · Palette generator →

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