#8F8A21#8F8A21

#8F8A21 is a mid, vivid yellow. Relative luminance 0.241; OKLCH L 61.9% C 0.121 H 106.6°. Best body text is #000000 at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#8F8A21
RGBrgb(143, 138, 33)
HSLhsl(57, 63%, 35%)
HSVhsv(57, 77%, 56%)
CMYKcmyk(0%, 3.5%, 76.9%, 43.9%)
CIE-LABlab(56.21, -10.49, 52.86)
CIE-LCHlch(56.21, 53.89, 101.22°)
OKLaboklab(61.9% -0.0346 0.1159)
OKLCHoklch(61.9% 0.121 106.6)
XYZxyz(20.6915, 24.1272, 5.0056)
Luminance0.2413 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F8A21 #21268F
analogous
#8F5321 #8F8A21 #5D8F21
triadic
#8F8A21 #218F8A #8A218F
tetradic
#8F8A21 #218F53 #21268F #8F215D
square
#8F8A21 #218F53 #21268F #8F215D
split-complementary
#8F8A21 #215D8F #53218F
monochromatic
#2C2A0A #5D5A16 #8F8A21 #C1BA2C #D7D153

Accessibility & contrast

On white

3.61
#8F8A21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.83
#8F8A21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F8A21
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F8A21#FFFFFF#000000##000000
##8F8A211.003.615.835.83
#FFFFFF3.611.0021.0021.00
#0000005.8321.001.001.00
##0000005.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#968509
Deuteranopia (green-blind)
#988929
Tritanopia (blue-blind)
#9A8076
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8f8a21;
/* rgb */ color: rgb(143, 138, 33);
/* oklch */ color: oklch(61.9% 0.121 106.6);
Tailwind
colors: {
  custom: {
    50: '#b3ab65',
    500: '#8f8a21',
    950: '#000000',
  },
}
SCSS
$custom: #8f8a21;
$custom-light: #b3ab65;
$custom-dark: #000000;
JSON
{
  "hex": "#8f8a21",
  "rgb": {
    "r": 143,
    "g": 138,
    "b": 33
  },
  "hsl": {
    "h": 57.273,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.61895,
    "c": 0.12091,
    "h": 106.6
  },
  "luminance": 0.24126
}

Semantic roles & 50–950 ramp

primary
#8F8A21
secondary
#5156BB
accent
#4AE642
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8F8A21

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

Preview Lab → · Contrast checker → · Palette generator →

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