#9FA822#9FA822

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

Color values

HEX#9FA822
RGBrgb(159, 168, 34)
HSLhsl(64, 66%, 40%)
HSVhsv(64, 80%, 66%)
CMYKcmyk(5.4%, 0%, 79.8%, 34.1%)
CIE-LABlab(66.13, -18.99, 62.03)
CIE-LCHlch(66.13, 64.87, 107.03°)
OKLaboklab(70.15% -0.059 0.1349)
OKLCHoklch(70.15% 0.147 113.6)
XYZxyz(28.5904, 35.4923, 6.8577)
Luminance0.3549 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FA822 #2B22A8
analogous
#A86E22 #9FA822 #5CA822
triadic
#9FA822 #229FA8 #A8229F
tetradic
#9FA822 #22A86E #2B22A8 #A8225C
square
#9FA822 #22A86E #2B22A8 #A8225C
split-complementary
#9FA822 #225CA8 #6E22A8
monochromatic
#3F420D #6F7518 #9FA822 #CAD532 #D7E065

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9FA822#FFFFFF#000000##000000
##9FA8221.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)
#B5A000
Deuteranopia (green-blind)
#B5A22F
Tritanopia (blue-blind)
#AA9E90
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #9fa822;
/* rgb */ color: rgb(159, 168, 34);
/* oklch */ color: oklch(70.2% 0.147 113.6);
Tailwind
colors: {
  custom: {
    50: '#bfc16a',
    500: '#9fa822',
    950: '#000000',
  },
}
SCSS
$custom: #9fa822;
$custom-light: #bfc16a;
$custom-dark: #000000;
JSON
{
  "hex": "#9fa822",
  "rgb": {
    "r": 159,
    "g": 168,
    "b": 34
  },
  "hsl": {
    "h": 64.03,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.70152,
    "c": 0.1473,
    "h": 113.6
  },
  "luminance": 0.35492
}

Semantic roles & 50–950 ramp

primary
#9FA822
secondary
#6761C5
accent
#3FE94A
background
#FCFBF6
surface
#F8F7EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #9FA822

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

Preview Lab → · Contrast checker → · Palette generator →

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