#9FA522#9FA522

#9FA522 is a light, vivid yellow. Relative luminance 0.344; OKLCH L 69.5% C 0.144 H 112.4°. Best body text is #000000 at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#9FA522
RGBrgb(159, 165, 34)
HSLhsl(63, 66%, 39%)
HSVhsv(63, 79%, 65%)
CMYKcmyk(3.6%, 0%, 79.4%, 35.3%)
CIE-LABlab(65.28, -17.47, 61.27)
CIE-LCHlch(65.28, 63.71, 105.91°)
OKLaboklab(69.47% -0.0548 0.1333)
OKLCHoklch(69.47% 0.144 112.4)
XYZxyz(28.0429, 34.3974, 6.6752)
Luminance0.3440 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FA522 #2822A5
analogous
#A56A22 #9FA522 #5EA522
triadic
#9FA522 #229FA5 #A5229F
tetradic
#9FA522 #22A56A #2822A5 #A5225E
square
#9FA522 #22A56A #2822A5 #A5225E
split-complementary
#9FA522 #225EA5 #6A22A5
monochromatic
#3D400D #6E7218 #9FA522 #CDD430 #D9DF63

Accessibility & contrast

On white

2.67
#9FA522 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.88
#9FA522 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FA522
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FA522#FFFFFF#000000##000000
##9FA5221.002.677.887.88
#FFFFFF2.671.0021.0021.00
#0000007.8821.001.001.00
##0000007.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29D00
Deuteranopia (green-blind)
#B2A02E
Tritanopia (blue-blind)
#AA9A8D
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #9fa522;
/* rgb */ color: rgb(159, 165, 34);
/* oklch */ color: oklch(69.5% 0.144 112.4);
Tailwind
colors: {
  custom: {
    50: '#bfbf6a',
    500: '#9fa522',
    950: '#000000',
  },
}
SCSS
$custom: #9fa522;
$custom-light: #bfbf6a;
$custom-dark: #000000;
JSON
{
  "hex": "#9fa522",
  "rgb": {
    "r": 159,
    "g": 165,
    "b": 34
  },
  "hsl": {
    "h": 62.748,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.69468,
    "c": 0.14416,
    "h": 112.4
  },
  "luminance": 0.34397
}

Semantic roles & 50–950 ramp

primary
#9FA522
secondary
#645FC4
accent
#3FE947
background
#FCFBF6
surface
#F8F7EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #9FA522

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

Preview Lab → · Contrast checker → · Palette generator →

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