#9F9229#9F9229

#9F9229 is a light, vivid yellow. Relative luminance 0.281; OKLCH L 65.2% C 0.122 H 102.0°. Best body text is #000000 at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#9F9229
RGBrgb(159, 146, 41)
HSLhsl(53, 59%, 39%)
HSVhsv(53, 74%, 62%)
CMYKcmyk(0%, 8.2%, 74.2%, 37.6%)
CIE-LABlab(59.97, -7.19, 54.02)
CIE-LCHlch(59.97, 54.50, 97.58°)
OKLaboklab(65.25% -0.0254 0.1192)
OKLCHoklch(65.25% 0.122 102)
XYZxyz(24.9783, 28.0899, 6.2036)
Luminance0.2809 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F9229 #29369F
analogous
#9F5729 #9F9229 #719F29
triadic
#9F9229 #299F92 #92299F
tetradic
#9F9229 #299F57 #29369F #9F2971
square
#9F9229 #299F57 #29369F #9F2971
split-complementary
#9F9229 #29719F #57299F
monochromatic
#3E3910 #6E651C #9F9229 #CCBC39 #D9CC6A

Accessibility & contrast

On white

3.17
#9F9229 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.62
#9F9229 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F9229
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F9229#FFFFFF#000000##000000
##9F92291.003.176.626.62
#FFFFFF3.171.0021.0021.00
#0000006.6221.001.001.00
##0000006.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#A08D16
Deuteranopia (green-blind)
#A49330
Tritanopia (blue-blind)
#AB877E
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #9f9229;
/* rgb */ color: rgb(159, 146, 41);
/* oklch */ color: oklch(65.2% 0.122 102.0);
Tailwind
colors: {
  custom: {
    50: '#bfb16b',
    500: '#9f9229',
    950: '#000000',
  },
}
SCSS
$custom: #9f9229;
$custom-light: #bfb16b;
$custom-dark: #000000;
JSON
{
  "hex": "#9f9229",
  "rgb": {
    "r": 159,
    "g": 146,
    "b": 41
  },
  "hsl": {
    "h": 53.39,
    "s": 59,
    "l": 39.216
  },
  "oklch": {
    "l": 0.65246,
    "c": 0.12192,
    "h": 102
  },
  "luminance": 0.28089
}

Semantic roles & 50–950 ramp

primary
#9F9229
secondary
#656FBF
accent
#57E246
background
#FCFAF6
surface
#F8F5EB
border
#D1CFC6
text
#131007
muted
#827F7A

Preview Lab

Preview with #9F9229

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

Preview Lab → · Contrast checker → · Palette generator →

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