#8F8318#8F8318

#8F8318 is a mid, moderate yellow. Relative luminance 0.221; OKLCH L 60.3% C 0.119 H 102.5°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#8F8318
RGBrgb(143, 131, 24)
HSLhsl(54, 71%, 33%)
HSVhsv(54, 83%, 56%)
CMYKcmyk(0%, 8.4%, 83.2%, 43.9%)
CIE-LABlab(54.17, -7.03, 53.93)
CIE-LCHlch(54.17, 54.39, 97.42°)
OKLaboklab(60.26% -0.0257 0.1164)
OKLCHoklch(60.26% 0.119 102.5)
XYZxyz(19.6098, 22.1391, 4.1043)
Luminance0.2214 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F8318 #18248F
analogous
#8F4818 #8F8318 #5F8F18
triadic
#8F8318 #188F83 #83188F
tetradic
#8F8318 #188F48 #18248F #8F185F
square
#8F8318 #188F48 #18248F #8F185F
split-complementary
#8F8318 #185F8F #48188F
monochromatic
#262306 #5B530F #8F8318 #C3B321 #DFCF42

Accessibility & contrast

On white

3.87
#8F8318 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#8F8318 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F8318
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F8318#FFFFFF#000000##000000
##8F83181.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F00
Deuteranopia (green-blind)
#948421
Tritanopia (blue-blind)
#9B7970
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #8f8318;
/* rgb */ color: rgb(143, 131, 24);
/* oklch */ color: oklch(60.3% 0.119 102.5);
Tailwind
colors: {
  custom: {
    50: '#b4a660',
    500: '#8f8318',
    950: '#000000',
  },
}
SCSS
$custom: #8f8318;
$custom-light: #b4a660;
$custom-dark: #000000;
JSON
{
  "hex": "#8f8318",
  "rgb": {
    "r": 143,
    "g": 131,
    "b": 24
  },
  "hsl": {
    "h": 53.95,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.60256,
    "c": 0.11916,
    "h": 102.5
  },
  "luminance": 0.22138
}

Semantic roles & 50–950 ramp

primary
#8F8318
secondary
#434FC0
accent
#4CEE3A
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#120F05
muted
#817F7A

Preview Lab

Preview with #8F8318

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

Preview Lab → · Contrast checker → · Palette generator →

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