#8A9921#8A9921

#8A9921 is a light, vivid yellow. Relative luminance 0.283; OKLCH L 64.9% C 0.138 H 116.8°. Best body text is #000000 at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#8A9921
RGBrgb(138, 153, 33)
HSLhsl(68, 65%, 36%)
HSVhsv(68, 78%, 60%)
CMYKcmyk(9.8%, 0%, 78.4%, 40%)
CIE-LABlab(60.16, -20.57, 56.34)
CIE-LCHlch(60.16, 59.98, 110.06°)
OKLaboklab(64.95% -0.0624 0.1234)
OKLCHoklch(64.95% 0.138 116.8)
XYZxyz(22.1476, 28.2958, 5.7335)
Luminance0.2830 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9921 #302199
analogous
#996C21 #8A9921 #4E9921
triadic
#8A9921 #218A99 #99218A
tetradic
#8A9921 #21996C #302199 #99214E
square
#8A9921 #21996C #302199 #99214E
split-complementary
#8A9921 #214E99 #6C2199
monochromatic
#2F340B #5D6716 #8A9921 #B7CB2C #CBDB59

Accessibility & contrast

On white

3.15
#8A9921 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.66
#8A9921 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9921
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9921#FFFFFF#000000##000000
##8A99211.003.156.666.66
#FFFFFF3.151.0021.0021.00
#0000006.6621.001.001.00
##0000006.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#A49100
Deuteranopia (green-blind)
#A3922C
Tritanopia (blue-blind)
#939083
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #8a9921;
/* rgb */ color: rgb(138, 153, 33);
/* oklch */ color: oklch(64.9% 0.138 116.8);
Tailwind
colors: {
  custom: {
    50: '#b0b667',
    500: '#8a9921',
    950: '#000000',
  },
}
SCSS
$custom: #8a9921;
$custom-light: #b0b667;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9921",
  "rgb": {
    "r": 138,
    "g": 153,
    "b": 33
  },
  "hsl": {
    "h": 67.5,
    "s": 64.516,
    "l": 36.471
  },
  "oklch": {
    "l": 0.64948,
    "c": 0.13829,
    "h": 116.8
  },
  "luminance": 0.28296
}

Semantic roles & 50–950 ramp

primary
#8A9921
secondary
#6456BF
accent
#40E855
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111107
muted
#80807A

Preview Lab

Preview with #8A9921

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

Preview Lab → · Contrast checker → · Palette generator →

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