#8A9F21#8A9F21

#8A9F21 is a light, vivid yellow-green. Relative luminance 0.303; OKLCH L 66.4% C 0.145 H 119.1°. Best body text is #000000 at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#8A9F21
RGBrgb(138, 159, 33)
HSLhsl(70, 66%, 38%)
HSVhsv(70, 79%, 62%)
CMYKcmyk(13.2%, 0%, 79.2%, 37.6%)
CIE-LABlab(61.92, -23.59, 57.95)
CIE-LCHlch(61.92, 62.56, 112.15°)
OKLaboklab(66.37% -0.0707 0.1269)
OKLCHoklch(66.37% 0.145 119.1)
XYZxyz(23.1544, 30.3095, 6.0691)
Luminance0.3031 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9F21 #36219F
analogous
#9F7521 #8A9F21 #4B9F21
triadic
#8A9F21 #218A9F #9F218A
tetradic
#8A9F21 #219F75 #36219F #9F214B
square
#8A9F21 #219F75 #36219F #9F214B
split-complementary
#8A9F21 #214B9F #75219F
monochromatic
#323A0C #5E6C16 #8A9F21 #B6D22C #C8DD5D

Accessibility & contrast

On white

2.97
#8A9F21 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.06
#8A9F21 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #8A9F21
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9F21#FFFFFF#000000##000000
##8A9F211.002.977.067.06
#FFFFFF2.971.0021.0021.00
#0000007.0621.001.001.00
##0000007.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#AA9600
Deuteranopia (green-blind)
#A7962D
Tritanopia (blue-blind)
#939688
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #8a9f21;
/* rgb */ color: rgb(138, 159, 33);
/* oklch */ color: oklch(66.4% 0.145 119.1);
Tailwind
colors: {
  custom: {
    50: '#b0bb68',
    500: '#8a9f21',
    950: '#000000',
  },
}
SCSS
$custom: #8a9f21;
$custom-light: #b0bb68;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9f21",
  "rgb": {
    "r": 138,
    "g": 159,
    "b": 33
  },
  "hsl": {
    "h": 70,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.66368,
    "c": 0.14521,
    "h": 119.1
  },
  "luminance": 0.30309
}

Semantic roles & 50–950 ramp

primary
#8A9F21
secondary
#6B5AC2
accent
#3FE95B
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111107
muted
#80807A

Preview Lab

Preview with #8A9F21

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

Preview Lab → · Contrast checker → · Palette generator →

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