#8F7F18#8F7F18

#8F7F18 is a mid, moderate yellow. Relative luminance 0.211; OKLCH L 59.4% C 0.116 H 99.7°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#8F7F18
RGBrgb(143, 127, 24)
HSLhsl(52, 71%, 33%)
HSVhsv(52, 83%, 56%)
CMYKcmyk(0%, 11.2%, 83.2%, 43.9%)
CIE-LABlab(53.04, -4.82, 52.95)
CIE-LCHlch(53.04, 53.17, 95.20°)
OKLaboklab(59.36% -0.0195 0.1142)
OKLCHoklch(59.36% 0.116 99.7)
XYZxyz(19.0829, 21.0853, 3.9287)
Luminance0.2108 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F7F18 #18288F
analogous
#8F4418 #8F7F18 #638F18
triadic
#8F7F18 #188F7F #7F188F
tetradic
#8F7F18 #188F44 #18288F #8F1863
square
#8F7F18 #188F44 #18288F #8F1863
split-complementary
#8F7F18 #18638F #44188F
monochromatic
#262206 #5B500F #8F7F18 #C3AE21 #DFCA42

Accessibility & contrast

On white

4.03
#8F7F18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#8F7F18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F7F18
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F7F18#FFFFFF#000000##000000
##8F7F181.004.035.225.22
#FFFFFF4.031.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B00
Deuteranopia (green-blind)
#918120
Tritanopia (blue-blind)
#9B756C
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8f7f18;
/* rgb */ color: rgb(143, 127, 24);
/* oklch */ color: oklch(59.4% 0.116 99.7);
Tailwind
colors: {
  custom: {
    50: '#b4a360',
    500: '#8f7f18',
    950: '#000000',
  },
}
SCSS
$custom: #8f7f18;
$custom-light: #b4a360;
$custom-dark: #000000;
JSON
{
  "hex": "#8f7f18",
  "rgb": {
    "r": 143,
    "g": 127,
    "b": 24
  },
  "hsl": {
    "h": 51.933,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.59357,
    "c": 0.11588,
    "h": 99.7
  },
  "luminance": 0.21084
}

Semantic roles & 50–950 ramp

primary
#8F7F18
secondary
#4354C0
accent
#52EE3A
background
#FBFAF5
surface
#F6F3EA
border
#D0CDC6
text
#120F05
muted
#817F79

Preview Lab

Preview with #8F7F18

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

Preview Lab → · Contrast checker → · Palette generator →

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