#8F8D21#8F8D21

#8F8D21 is a light, vivid yellow. Relative luminance 0.250; OKLCH L 62.6% C 0.124 H 108.4°. Best body text is #000000 at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#8F8D21
RGBrgb(143, 141, 33)
HSLhsl(59, 63%, 35%)
HSVhsv(59, 77%, 56%)
CMYKcmyk(0%, 1.4%, 76.9%, 43.9%)
CIE-LABlab(57.08, -12.10, 53.66)
CIE-LCHlch(57.08, 55.00, 102.70°)
OKLaboklab(62.58% -0.0391 0.1176)
OKLCHoklch(62.58% 0.124 108.4)
XYZxyz(21.1279, 24.9999, 5.1511)
Luminance0.2500 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F8D21 #21238F
analogous
#8F5621 #8F8D21 #5A8F21
triadic
#8F8D21 #218F8D #8D218F
tetradic
#8F8D21 #218F56 #21238F #8F215A
square
#8F8D21 #218F56 #21238F #8F215A
split-complementary
#8F8D21 #215A8F #56218F
monochromatic
#2C2B0A #5D5C16 #8F8D21 #C1BE2C #D7D553

Accessibility & contrast

On white

3.50
#8F8D21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.00
#8F8D21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F8D21
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F8D21#FFFFFF#000000##000000
##8F8D211.003.506.006.00
#FFFFFF3.501.0021.0021.00
#0000006.0021.001.001.00
##0000006.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#998707
Deuteranopia (green-blind)
#9B8B2A
Tritanopia (blue-blind)
#9A8379
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #8f8d21;
/* rgb */ color: rgb(143, 141, 33);
/* oklch */ color: oklch(62.6% 0.124 108.4);
Tailwind
colors: {
  custom: {
    50: '#b3ae66',
    500: '#8f8d21',
    950: '#000000',
  },
}
SCSS
$custom: #8f8d21;
$custom-light: #b3ae66;
$custom-dark: #000000;
JSON
{
  "hex": "#8f8d21",
  "rgb": {
    "r": 143,
    "g": 141,
    "b": 33
  },
  "hsl": {
    "h": 58.909,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.62581,
    "c": 0.12389,
    "h": 108.4
  },
  "luminance": 0.24999
}

Semantic roles & 50–950 ramp

primary
#8F8D21
secondary
#5153BB
accent
#45E642
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8F8D21

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

Preview Lab → · Contrast checker → · Palette generator →

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