#8A9721#8A9721

#8A9721 is a light, vivid yellow. Relative luminance 0.276; OKLCH L 64.5% C 0.136 H 116.0°. Best body text is #000000 at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#8A9721
RGBrgb(138, 151, 33)
HSLhsl(67, 64%, 36%)
HSVhsv(67, 78%, 59%)
CMYKcmyk(8.6%, 0%, 78.1%, 40.8%)
CIE-LABlab(59.57, -19.56, 55.80)
CIE-LCHlch(59.57, 59.13, 109.31°)
OKLaboklab(64.48% -0.0596 0.1223)
OKLCHoklch(64.48% 0.136 116)
XYZxyz(21.8230, 27.6466, 5.6253)
Luminance0.2765 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9721 #2E2197
analogous
#976921 #8A9721 #4F9721
triadic
#8A9721 #218A97 #97218A
tetradic
#8A9721 #219769 #2E2197 #97214F
square
#8A9721 #219769 #2E2197 #97214F
split-complementary
#8A9721 #214F97 #692197
monochromatic
#2E330B #5C6516 #8A9721 #B8C92C #CCDA58

Accessibility & contrast

On white

3.22
#8A9721 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.53
#8A9721 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9721
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9721#FFFFFF#000000##000000
##8A97211.003.226.536.53
#FFFFFF3.221.0021.0021.00
#0000006.5321.001.001.00
##0000006.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#A28F00
Deuteranopia (green-blind)
#A1902C
Tritanopia (blue-blind)
#938E81
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #8a9721;
/* rgb */ color: rgb(138, 151, 33);
/* oklch */ color: oklch(64.5% 0.136 116.0);
Tailwind
colors: {
  custom: {
    50: '#b0b567',
    500: '#8a9721',
    950: '#000000',
  },
}
SCSS
$custom: #8a9721;
$custom-light: #b0b567;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9721",
  "rgb": {
    "r": 138,
    "g": 151,
    "b": 33
  },
  "hsl": {
    "h": 66.61,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.64476,
    "c": 0.13602,
    "h": 116
  },
  "luminance": 0.27646
}

Semantic roles & 50–950 ramp

primary
#8A9721
secondary
#6155BE
accent
#41E753
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #8A9721

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

Preview Lab → · Contrast checker → · Palette generator →

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