#9F9222#9F9222

#9F9222 is a light, vivid yellow. Relative luminance 0.280; OKLCH L 65.2% C 0.126 H 102.4°. Best body text is #000000 at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#9F9222
RGBrgb(159, 146, 34)
HSLhsl(54, 65%, 38%)
HSVhsv(54, 79%, 62%)
CMYKcmyk(0%, 8.2%, 78.6%, 37.6%)
CIE-LABlab(59.93, -7.49, 56.46)
CIE-LCHlch(59.93, 56.96, 97.56°)
OKLaboklab(65.2% -0.027 0.123)
OKLCHoklch(65.2% 0.126 102.4)
XYZxyz(24.8669, 28.0453, 5.6165)
Luminance0.2804 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F9222 #222F9F
analogous
#9F5322 #9F9222 #6D9F22
triadic
#9F9222 #229F92 #92229F
tetradic
#9F9222 #229F53 #222F9F #9F226D
square
#9F9222 #229F53 #222F9F #9F226D
split-complementary
#9F9222 #226D9F #53229F
monochromatic
#3A350C #6D6417 #9F9222 #D1C02D #DDD05F

Accessibility & contrast

On white

3.18
#9F9222 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.61
#9F9222 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F9222
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F9222#FFFFFF#000000##000000
##9F92221.003.186.616.61
#FFFFFF3.181.0021.0021.00
#0000006.6121.001.001.00
##0000006.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#A08D05
Deuteranopia (green-blind)
#A4932B
Tritanopia (blue-blind)
#AC877D
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #9f9222;
/* rgb */ color: rgb(159, 146, 34);
/* oklch */ color: oklch(65.2% 0.126 102.4);
Tailwind
colors: {
  custom: {
    50: '#bfb167',
    500: '#9f9222',
    950: '#000000',
  },
}
SCSS
$custom: #9f9222;
$custom-light: #bfb167;
$custom-dark: #000000;
JSON
{
  "hex": "#9f9222",
  "rgb": {
    "r": 159,
    "g": 146,
    "b": 34
  },
  "hsl": {
    "h": 53.76,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.65201,
    "c": 0.12597,
    "h": 102.4
  },
  "luminance": 0.28044
}

Semantic roles & 50–950 ramp

primary
#9F9222
secondary
#5B66C1
accent
#51E840
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9F9222

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

Preview Lab → · Contrast checker → · Palette generator →

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