#8F8331#8F8331

#8F8331 is a mid, moderate yellow. Relative luminance 0.223; OKLCH L 60.4% C 0.103 H 101.0°. Best body text is #000000 at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#8F8331
RGBrgb(143, 131, 49)
HSLhsl(52, 49%, 38%)
HSVhsv(52, 66%, 56%)
CMYKcmyk(0%, 8.4%, 65.7%, 43.9%)
CIE-LABlab(54.34, -5.79, 44.52)
CIE-LCHlch(54.34, 44.89, 97.41°)
OKLaboklab(60.44% -0.0196 0.1011)
OKLCHoklch(60.44% 0.103 101)
XYZxyz(19.9992, 22.2948, 6.1550)
Luminance0.2229 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F8331 #313D8F
analogous
#8F5431 #8F8331 #6C8F31
triadic
#8F8331 #318F83 #83318F
tetradic
#8F8331 #318F54 #313D8F #8F316C
square
#8F8331 #318F54 #313D8F #8F316C
split-complementary
#8F8331 #316C8F #54318F
monochromatic
#342F12 #615921 #8F8331 #BDAD41 #CDC16D

Accessibility & contrast

On white

3.85
#8F8331 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.46
#8F8331 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F8331
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F8331#FFFFFF#000000##000000
##8F83311.003.855.465.46
#FFFFFF3.851.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7F27
Deuteranopia (green-blind)
#928436
Tritanopia (blue-blind)
#9A7A72
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #8f8331;
/* rgb */ color: rgb(143, 131, 49);
/* oklch */ color: oklch(60.4% 0.103 101.0);
Tailwind
colors: {
  custom: {
    50: '#b2a66d',
    500: '#8f8331',
    950: '#000000',
  },
}
SCSS
$custom: #8f8331;
$custom-light: #b2a66d;
$custom-dark: #000000;
JSON
{
  "hex": "#8f8331",
  "rgb": {
    "r": 143,
    "g": 131,
    "b": 49
  },
  "hsl": {
    "h": 52.34,
    "s": 48.958,
    "l": 37.647
  },
  "oklch": {
    "l": 0.60439,
    "c": 0.103,
    "h": 101
  },
  "luminance": 0.22294
}

Semantic roles & 50–950 ramp

primary
#8F8331
secondary
#6771B5
accent
#61D94F
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#110F07
muted
#807F7A

Preview Lab

Preview with #8F8331

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

Preview Lab → · Contrast checker → · Palette generator →

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