#8FA221#8FA221

#8FA221 is a light, vivid yellow. Relative luminance 0.318; OKLCH L 67.5% C 0.147 H 118.1°. Best body text is #000000 at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#8FA221
RGBrgb(143, 162, 33)
HSLhsl(69, 66%, 38%)
HSVhsv(69, 80%, 64%)
CMYKcmyk(11.7%, 0%, 79.6%, 36.5%)
CIE-LABlab(63.17, -22.94, 59.21)
CIE-LCHlch(63.17, 63.50, 111.17°)
OKLaboklab(67.47% -0.0691 0.1294)
OKLCHoklch(67.47% 0.147 118.1)
XYZxyz(24.5231, 31.7903, 6.2828)
Luminance0.3179 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8FA221 #3421A2
analogous
#A27421 #8FA221 #4EA221
triadic
#8FA221 #218FA2 #A2218F
tetradic
#8FA221 #21A274 #3421A2 #A2214E
square
#8FA221 #21A274 #3421A2 #A2214E
split-complementary
#8FA221 #214EA2 #7421A2
monochromatic
#353C0C #626F17 #8FA221 #BBD42C #CCDE5F

Accessibility & contrast

On white

2.85
#8FA221 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.36
#8FA221 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #8FA221
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8FA221#FFFFFF#000000##000000
##8FA2211.002.857.367.36
#FFFFFF2.851.0021.0021.00
#0000007.3621.001.001.00
##0000007.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9900
Deuteranopia (green-blind)
#AB992E
Tritanopia (blue-blind)
#98998A
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #8fa221;
/* rgb */ color: rgb(143, 162, 33);
/* oklch */ color: oklch(67.5% 0.147 118.1);
Tailwind
colors: {
  custom: {
    50: '#b3bd68',
    500: '#8fa221',
    950: '#000000',
  },
}
SCSS
$custom: #8fa221;
$custom-light: #b3bd68;
$custom-dark: #000000;
JSON
{
  "hex": "#8fa221",
  "rgb": {
    "r": 143,
    "g": 162,
    "b": 33
  },
  "hsl": {
    "h": 68.837,
    "s": 66.154,
    "l": 38.235
  },
  "oklch": {
    "l": 0.67467,
    "c": 0.14669,
    "h": 118.1
  },
  "luminance": 0.3179
}

Semantic roles & 50–950 ramp

primary
#8FA221
secondary
#6B5CC3
accent
#3FE958
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111207
muted
#80817A

Preview Lab

Preview with #8FA221

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

Preview Lab → · Contrast checker → · Palette generator →

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