#8F8731#8F8731

#8F8731 is a mid, moderate yellow. Relative luminance 0.234; OKLCH L 61.3% C 0.107 H 104.0°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#8F8731
RGBrgb(143, 135, 49)
HSLhsl(55, 49%, 38%)
HSVhsv(55, 66%, 56%)
CMYKcmyk(0%, 5.6%, 65.7%, 43.9%)
CIE-LABlab(55.47, -7.99, 45.72)
CIE-LCHlch(55.47, 46.41, 99.91°)
OKLaboklab(61.34% -0.0258 0.1037)
OKLCHoklch(61.34% 0.107 104)
XYZxyz(20.5468, 23.3901, 6.3376)
Luminance0.2339 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F8731 #31398F
analogous
#8F5831 #8F8731 #688F31
triadic
#8F8731 #318F87 #87318F
tetradic
#8F8731 #318F58 #31398F #8F3168
square
#8F8731 #318F58 #31398F #8F3168
split-complementary
#8F8731 #31688F #58318F
monochromatic
#343112 #615C21 #8F8731 #BDB241 #CDC56D

Accessibility & contrast

On white

3.70
#8F8731 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#8F8731 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F8731
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F8731#FFFFFF#000000##000000
##8F87311.003.705.685.68
#FFFFFF3.701.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#938226
Deuteranopia (green-blind)
#958736
Tritanopia (blue-blind)
#997E75
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #8f8731;
/* rgb */ color: rgb(143, 135, 49);
/* oklch */ color: oklch(61.3% 0.107 104.0);
Tailwind
colors: {
  custom: {
    50: '#b2a96e',
    500: '#8f8731',
    950: '#000000',
  },
}
SCSS
$custom: #8f8731;
$custom-light: #b2a96e;
$custom-dark: #000000;
JSON
{
  "hex": "#8f8731",
  "rgb": {
    "r": 143,
    "g": 135,
    "b": 49
  },
  "hsl": {
    "h": 54.894,
    "s": 48.958,
    "l": 37.647
  },
  "oklch": {
    "l": 0.61339,
    "c": 0.10683,
    "h": 104
  },
  "luminance": 0.23389
}

Semantic roles & 50–950 ramp

primary
#8F8731
secondary
#676EB5
accent
#5BD94F
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#110F07
muted
#807F7A

Preview Lab

Preview with #8F8731

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

Preview Lab → · Contrast checker → · Palette generator →

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