#8A9E21#8A9E21

#8A9E21 is a light, vivid yellow. Relative luminance 0.300; OKLCH L 66.1% C 0.144 H 118.8°. Best body text is #000000 at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#8A9E21
RGBrgb(138, 158, 33)
HSLhsl(70, 65%, 37%)
HSVhsv(70, 79%, 62%)
CMYKcmyk(12.7%, 0%, 79.1%, 38%)
CIE-LABlab(61.63, -23.09, 57.68)
CIE-LCHlch(61.63, 62.13, 111.82°)
OKLaboklab(66.13% -0.0693 0.1263)
OKLCHoklch(66.13% 0.144 118.8)
XYZxyz(22.9831, 29.9670, 6.0120)
Luminance0.2997 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9E21 #35219E
analogous
#9E7421 #8A9E21 #4C9E21
triadic
#8A9E21 #218A9E #9E218A
tetradic
#8A9E21 #219E74 #35219E #9E214C
square
#8A9E21 #219E74 #35219E #9E214C
split-complementary
#8A9E21 #214C9E #74219E
monochromatic
#32390C #5E6B16 #8A9E21 #B6D12C #C8DD5C

Accessibility & contrast

On white

3.00
#8A9E21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.99
#8A9E21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9E21
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9E21#FFFFFF#000000##000000
##8A9E211.003.006.996.99
#FFFFFF3.001.0021.0021.00
#0000006.9921.001.001.00
##0000006.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#A99500
Deuteranopia (green-blind)
#A7952D
Tritanopia (blue-blind)
#939587
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #8a9e21;
/* rgb */ color: rgb(138, 158, 33);
/* oklch */ color: oklch(66.1% 0.144 118.8);
Tailwind
colors: {
  custom: {
    50: '#b0ba68',
    500: '#8a9e21',
    950: '#000000',
  },
}
SCSS
$custom: #8a9e21;
$custom-light: #b0ba68;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9e21",
  "rgb": {
    "r": 138,
    "g": 158,
    "b": 33
  },
  "hsl": {
    "h": 69.6,
    "s": 65.445,
    "l": 37.451
  },
  "oklch": {
    "l": 0.66131,
    "c": 0.14405,
    "h": 118.8
  },
  "luminance": 0.29967
}

Semantic roles & 50–950 ramp

primary
#8A9E21
secondary
#6A59C1
accent
#3FE85A
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111107
muted
#80807A

Preview Lab

Preview with #8A9E21

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

Preview Lab → · Contrast checker → · Palette generator →

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