#9FA520#9FA520

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

Color values

HEX#9FA520
RGBrgb(159, 165, 32)
HSLhsl(63, 68%, 39%)
HSVhsv(63, 81%, 65%)
CMYKcmyk(3.6%, 0%, 80.6%, 35.3%)
CIE-LABlab(65.27, -17.54, 61.84)
CIE-LCHlch(65.27, 64.28, 105.84°)
OKLaboklab(69.46% -0.0552 0.1342)
OKLCHoklch(69.46% 0.145 112.3)
XYZxyz(28.0149, 34.3862, 6.5277)
Luminance0.3438 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FA520 #2620A5
analogous
#A56820 #9FA520 #5CA520
triadic
#9FA520 #209FA5 #A5209F
tetradic
#9FA520 #20A568 #2620A5 #A5205C
square
#9FA520 #20A568 #2620A5 #A5205C
split-complementary
#9FA520 #205CA5 #6820A5
monochromatic
#3C3E0C #6E7216 #9FA520 #CED62C #DAE05F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9FA520#FFFFFF#000000##000000
##9FA5201.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)
#B2A02D
Tritanopia (blue-blind)
#AA9A8D
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #9fa520;
/* rgb */ color: rgb(159, 165, 32);
/* oklch */ color: oklch(69.5% 0.145 112.3);
Tailwind
colors: {
  custom: {
    50: '#bfbf69',
    500: '#9fa520',
    950: '#000000',
  },
}
SCSS
$custom: #9fa520;
$custom-light: #bfbf69;
$custom-dark: #000000;
JSON
{
  "hex": "#9fa520",
  "rgb": {
    "r": 159,
    "g": 165,
    "b": 32
  },
  "hsl": {
    "h": 62.707,
    "s": 67.513,
    "l": 38.627
  },
  "oklch": {
    "l": 0.69458,
    "c": 0.14509,
    "h": 112.3
  },
  "luminance": 0.34385
}

Semantic roles & 50–950 ramp

primary
#9FA520
secondary
#615CC5
accent
#3DEA45
background
#FCFBF6
surface
#F8F7EB
border
#D1D0C6
text
#131207
muted
#82817A

Preview Lab

Preview with #9FA520

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

Preview Lab → · Contrast checker → · Palette generator →

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