#8A9A21#8A9A21

#8A9A21 is a light, vivid yellow. Relative luminance 0.286; OKLCH L 65.2% C 0.139 H 117.2°. Best body text is #000000 at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#8A9A21
RGBrgb(138, 154, 33)
HSLhsl(68, 65%, 37%)
HSVhsv(68, 79%, 60%)
CMYKcmyk(10.4%, 0%, 78.6%, 39.6%)
CIE-LABlab(60.45, -21.08, 56.61)
CIE-LCHlch(60.45, 60.41, 110.43°)
OKLaboklab(65.18% -0.0638 0.124)
OKLCHoklch(65.18% 0.139 117.2)
XYZxyz(22.3119, 28.6246, 5.7883)
Luminance0.2862 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9A21 #31219A
analogous
#9A6E21 #8A9A21 #4E9A21
triadic
#8A9A21 #218A9A #9A218A
tetradic
#8A9A21 #219A6E #31219A #9A214E
square
#8A9A21 #219A6E #31219A #9A214E
split-complementary
#8A9A21 #214E9A #6E219A
monochromatic
#30350B #5D6816 #8A9A21 #B7CC2C #CADC5A

Accessibility & contrast

On white

3.12
#8A9A21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.72
#8A9A21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9A21
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9A21#FFFFFF#000000##000000
##8A9A211.003.126.726.72
#FFFFFF3.121.0021.0021.00
#0000006.7221.001.001.00
##0000006.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#A59100
Deuteranopia (green-blind)
#A3922C
Tritanopia (blue-blind)
#939184
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #8a9a21;
/* rgb */ color: rgb(138, 154, 33);
/* oklch */ color: oklch(65.2% 0.139 117.2);
Tailwind
colors: {
  custom: {
    50: '#b0b767',
    500: '#8a9a21',
    950: '#000000',
  },
}
SCSS
$custom: #8a9a21;
$custom-light: #b0b767;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9a21",
  "rgb": {
    "r": 138,
    "g": 154,
    "b": 33
  },
  "hsl": {
    "h": 67.934,
    "s": 64.706,
    "l": 36.667
  },
  "oklch": {
    "l": 0.65184,
    "c": 0.13944,
    "h": 117.2
  },
  "luminance": 0.28624
}

Semantic roles & 50–950 ramp

primary
#8A9A21
secondary
#6557C0
accent
#40E856
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111107
muted
#80807A

Preview Lab

Preview with #8A9A21

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

Preview Lab → · Contrast checker → · Palette generator →

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