#8F8540#8F8540

#8F8540 is a mid, moderate yellow. Relative luminance 0.230; OKLCH L 61.1% C 0.091 H 101.2°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#8F8540
RGBrgb(143, 133, 64)
HSLhsl(52, 38%, 41%)
HSVhsv(52, 55%, 56%)
CMYKcmyk(0%, 7%, 55.2%, 43.9%)
CIE-LABlab(55.06, -5.74, 38.06)
CIE-LCHlch(55.06, 38.49, 98.58°)
OKLaboklab(61.06% -0.0176 0.0893)
OKLCHoklch(61.06% 0.091 101.2)
XYZxyz(20.6413, 22.9856, 8.1989)
Luminance0.2298 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F8540 #404A8F
analogous
#8F5D40 #8F8540 #718F40
triadic
#8F8540 #408F85 #85408F
tetradic
#8F8540 #408F5D #404A8F #8F4071
square
#8F8540 #408F5D #404A8F #8F4071
split-complementary
#8F8540 #40718F #5D408F
monochromatic
#3A361A #655E2D #8F8540 #B4A958 #C7BE82

Accessibility & contrast

On white

3.75
#8F8540 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.60
#8F8540 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F8540
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F8540#FFFFFF#000000##000000
##8F85401.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#908139
Deuteranopia (green-blind)
#938643
Tritanopia (blue-blind)
#997D75
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8f8540;
/* rgb */ color: rgb(143, 133, 64);
/* oklch */ color: oklch(61.1% 0.091 101.2);
Tailwind
colors: {
  custom: {
    50: '#b2a877',
    500: '#8f8540',
    950: '#000000',
  },
}
SCSS
$custom: #8f8540;
$custom-light: #b2a877;
$custom-dark: #000000;
JSON
{
  "hex": "#8f8540",
  "rgb": {
    "r": 143,
    "g": 133,
    "b": 64
  },
  "hsl": {
    "h": 52.405,
    "s": 38.164,
    "l": 40.588
  },
  "oklch": {
    "l": 0.61059,
    "c": 0.09103,
    "h": 101.2
  },
  "luminance": 0.22985
}

Semantic roles & 50–950 ramp

primary
#8F8540
secondary
#7980B2
accent
#68CE5A
background
#FBFAF7
surface
#F6F4ED
border
#D0CEC8
text
#110F09
muted
#807F7B

Preview Lab

Preview with #8F8540

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

Preview Lab → · Contrast checker → · Palette generator →

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