#8F8721#8F8721

#8F8721 is a mid, moderate yellow. Relative luminance 0.233; OKLCH L 61.2% C 0.118 H 104.8°. Best body text is #000000 at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#8F8721
RGBrgb(143, 135, 33)
HSLhsl(56, 63%, 35%)
HSVhsv(56, 77%, 56%)
CMYKcmyk(0%, 5.6%, 76.9%, 43.9%)
CIE-LABlab(55.36, -8.86, 52.07)
CIE-LCHlch(55.36, 52.81, 99.66°)
OKLaboklab(61.21% -0.0301 0.1142)
OKLCHoklch(61.21% 0.118 104.8)
XYZxyz(20.2671, 23.2782, 4.8641)
Luminance0.2328 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F8721 #21298F
analogous
#8F5021 #8F8721 #608F21
triadic
#8F8721 #218F87 #87218F
tetradic
#8F8721 #218F50 #21298F #8F2160
square
#8F8721 #218F50 #21298F #8F2160
split-complementary
#8F8721 #21608F #50218F
monochromatic
#2C290A #5D5816 #8F8721 #C1B62C #D7CE53

Accessibility & contrast

On white

3.71
#8F8721 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.66
#8F8721 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F8721
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F8721#FFFFFF#000000##000000
##8F87211.003.715.665.66
#FFFFFF3.711.0021.0021.00
#0000005.6621.001.001.00
##0000005.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#93820B
Deuteranopia (green-blind)
#968729
Tritanopia (blue-blind)
#9A7D74
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #8f8721;
/* rgb */ color: rgb(143, 135, 33);
/* oklch */ color: oklch(61.2% 0.118 104.8);
Tailwind
colors: {
  custom: {
    50: '#b3a965',
    500: '#8f8721',
    950: '#000000',
  },
}
SCSS
$custom: #8f8721;
$custom-light: #b3a965;
$custom-dark: #000000;
JSON
{
  "hex": "#8f8721",
  "rgb": {
    "r": 143,
    "g": 135,
    "b": 33
  },
  "hsl": {
    "h": 55.636,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.61212,
    "c": 0.11805,
    "h": 104.8
  },
  "luminance": 0.23277
}

Semantic roles & 50–950 ramp

primary
#8F8721
secondary
#5159BB
accent
#4EE642
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8F8721

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

Preview Lab → · Contrast checker → · Palette generator →

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