#9F9221#9F9221

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

Color values

HEX#9F9221
RGBrgb(159, 146, 33)
HSLhsl(54, 66%, 38%)
HSVhsv(54, 79%, 62%)
CMYKcmyk(0%, 8.2%, 79.2%, 37.6%)
CIE-LABlab(59.92, -7.53, 56.79)
CIE-LCHlch(59.92, 57.28, 97.56°)
OKLaboklab(65.2% -0.0272 0.1235)
OKLCHoklch(65.2% 0.127 102.4)
XYZxyz(24.8526, 28.0396, 5.5417)
Luminance0.2804 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F9221 #212E9F
analogous
#9F5321 #9F9221 #6D9F21
triadic
#9F9221 #219F92 #92219F
tetradic
#9F9221 #219F53 #212E9F #9F216D
square
#9F9221 #219F53 #212E9F #9F216D
split-complementary
#9F9221 #216D9F #53219F
monochromatic
#3A350C #6C6316 #9F9221 #D2C12C #DDD05D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9F9221#FFFFFF#000000##000000
##9F92211.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)
#A08D03
Deuteranopia (green-blind)
#A4932A
Tritanopia (blue-blind)
#AC877D
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #9f9221;
/* rgb */ color: rgb(159, 146, 33);
/* oklch */ color: oklch(65.2% 0.127 102.4);
Tailwind
colors: {
  custom: {
    50: '#bfb167',
    500: '#9f9221',
    950: '#000000',
  },
}
SCSS
$custom: #9f9221;
$custom-light: #bfb167;
$custom-dark: #000000;
JSON
{
  "hex": "#9f9221",
  "rgb": {
    "r": 159,
    "g": 146,
    "b": 33
  },
  "hsl": {
    "h": 53.81,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.65196,
    "c": 0.1265,
    "h": 102.4
  },
  "luminance": 0.28039
}

Semantic roles & 50–950 ramp

primary
#9F9221
secondary
#5A65C2
accent
#51E93F
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9F9221

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

Preview Lab → · Contrast checker → · Palette generator →

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