#8A9D21#8A9D21

#8A9D21 is a light, vivid yellow. Relative luminance 0.296; OKLCH L 65.9% C 0.143 H 118.4°. Best body text is #000000 at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#8A9D21
RGBrgb(138, 157, 33)
HSLhsl(69, 65%, 37%)
HSVhsv(69, 79%, 62%)
CMYKcmyk(12.1%, 0%, 79%, 38.4%)
CIE-LABlab(61.33, -22.59, 57.41)
CIE-LCHlch(61.33, 61.70, 111.48°)
OKLaboklab(65.89% -0.0679 0.1257)
OKLCHoklch(65.89% 0.143 118.4)
XYZxyz(22.8132, 29.6272, 5.9554)
Luminance0.2963 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9D21 #34219D
analogous
#9D7221 #8A9D21 #4C9D21
triadic
#8A9D21 #218A9D #9D218A
tetradic
#8A9D21 #219D72 #34219D #9D214C
square
#8A9D21 #219D72 #34219D #9D214C
split-complementary
#8A9D21 #214C9D #72219D
monochromatic
#31380C #5E6A16 #8A9D21 #B6D02C #C9DD5C

Accessibility & contrast

On white

3.03
#8A9D21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.93
#8A9D21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9D21
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9D21#FFFFFF#000000##000000
##8A9D211.003.036.936.93
#FFFFFF3.031.0021.0021.00
#0000006.9321.001.001.00
##0000006.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#A89400
Deuteranopia (green-blind)
#A6952D
Tritanopia (blue-blind)
#939486
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #8a9d21;
/* rgb */ color: rgb(138, 157, 33);
/* oklch */ color: oklch(65.9% 0.143 118.4);
Tailwind
colors: {
  custom: {
    50: '#b0b968',
    500: '#8a9d21',
    950: '#000000',
  },
}
SCSS
$custom: #8a9d21;
$custom-light: #b0b968;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9d21",
  "rgb": {
    "r": 138,
    "g": 157,
    "b": 33
  },
  "hsl": {
    "h": 69.194,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.65894,
    "c": 0.14289,
    "h": 118.4
  },
  "luminance": 0.29627
}

Semantic roles & 50–950 ramp

primary
#8A9D21
secondary
#6959C1
accent
#40E859
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111107
muted
#80807A

Preview Lab

Preview with #8A9D21

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

Preview Lab → · Contrast checker → · Palette generator →

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