#9F9822#9F9822

#9F9822 is a light, vivid yellow. Relative luminance 0.299; OKLCH L 66.5% C 0.131 H 105.9°. Best body text is #000000 at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#9F9822
RGBrgb(159, 152, 34)
HSLhsl(57, 65%, 38%)
HSVhsv(57, 79%, 62%)
CMYKcmyk(0%, 4.4%, 78.6%, 37.6%)
CIE-LABlab(61.61, -10.70, 57.98)
CIE-LCHlch(61.61, 58.96, 100.46°)
OKLaboklab(66.54% -0.036 0.1263)
OKLCHoklch(66.54% 0.131 105.9)
XYZxyz(25.8161, 29.9439, 5.9329)
Luminance0.2994 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F9822 #22299F
analogous
#9F5922 #9F9822 #679F22
triadic
#9F9822 #229F98 #98229F
tetradic
#9F9822 #229F59 #22299F #9F2267
square
#9F9822 #229F59 #22299F #9F2267
split-complementary
#9F9822 #22679F #59229F
monochromatic
#3A380C #6D6817 #9F9822 #D1C82D #DDD65F

Accessibility & contrast

On white

3.00
#9F9822 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.99
#9F9822 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F9822
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F9822#FFFFFF#000000##000000
##9F98221.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)
#A69201
Deuteranopia (green-blind)
#A8972C
Tritanopia (blue-blind)
#AB8D82
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #9f9822;
/* rgb */ color: rgb(159, 152, 34);
/* oklch */ color: oklch(66.5% 0.131 105.9);
Tailwind
colors: {
  custom: {
    50: '#bfb668',
    500: '#9f9822',
    950: '#000000',
  },
}
SCSS
$custom: #9f9822;
$custom-light: #bfb668;
$custom-dark: #000000;
JSON
{
  "hex": "#9f9822",
  "rgb": {
    "r": 159,
    "g": 152,
    "b": 34
  },
  "hsl": {
    "h": 56.64,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.66535,
    "c": 0.13132,
    "h": 105.9
  },
  "luminance": 0.29943
}

Semantic roles & 50–950 ramp

primary
#9F9822
secondary
#5B61C1
accent
#49E840
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131107
muted
#82807A

Preview Lab

Preview with #9F9822

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

Preview Lab → · Contrast checker → · Palette generator →

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