#9FA821#9FA821

#9FA821 is a light, vivid yellow. Relative luminance 0.355; OKLCH L 70.1% C 0.148 H 113.6°. Best body text is #000000 at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#9FA821
RGBrgb(159, 168, 33)
HSLhsl(64, 67%, 39%)
HSVhsv(64, 80%, 66%)
CMYKcmyk(5.4%, 0%, 80.4%, 34.1%)
CIE-LABlab(66.13, -19.03, 62.31)
CIE-LCHlch(66.13, 65.15, 106.98°)
OKLaboklab(70.15% -0.0592 0.1354)
OKLCHoklch(70.15% 0.148 113.6)
XYZxyz(28.5761, 35.4866, 6.7828)
Luminance0.3549 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FA821 #2A21A8
analogous
#A86E21 #9FA821 #5CA821
triadic
#9FA821 #219FA8 #A8219F
tetradic
#9FA821 #21A86E #2A21A8 #A8215C
square
#9FA821 #21A86E #2A21A8 #A8215C
split-complementary
#9FA821 #215CA8 #6E21A8
monochromatic
#3E420D #6F7517 #9FA821 #CBD630 #D8E063

Accessibility & contrast

On white

2.59
#9FA821 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.10
#9FA821 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FA821
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FA821#FFFFFF#000000##000000
##9FA8211.002.598.108.10
#FFFFFF2.591.0021.0021.00
#0000008.1021.001.001.00
##0000008.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B59F00
Deuteranopia (green-blind)
#B5A22E
Tritanopia (blue-blind)
#AA9E90
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #9fa821;
/* rgb */ color: rgb(159, 168, 33);
/* oklch */ color: oklch(70.1% 0.148 113.6);
Tailwind
colors: {
  custom: {
    50: '#bfc16a',
    500: '#9fa821',
    950: '#000000',
  },
}
SCSS
$custom: #9fa821;
$custom-light: #bfc16a;
$custom-dark: #000000;
JSON
{
  "hex": "#9fa821",
  "rgb": {
    "r": 159,
    "g": 168,
    "b": 33
  },
  "hsl": {
    "h": 64,
    "s": 67.164,
    "l": 39.412
  },
  "oklch": {
    "l": 0.70147,
    "c": 0.14777,
    "h": 113.6
  },
  "luminance": 0.35486
}

Semantic roles & 50–950 ramp

primary
#9FA821
secondary
#665FC5
accent
#3EEA49
background
#FCFBF6
surface
#F8F7EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #9FA821

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

Preview Lab → · Contrast checker → · Palette generator →

#9FA821 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva