#9FA528#9FA528

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

Color values

HEX#9FA528
RGBrgb(159, 165, 40)
HSLhsl(63, 61%, 40%)
HSVhsv(63, 76%, 65%)
CMYKcmyk(3.6%, 0%, 75.8%, 35.3%)
CIE-LABlab(65.31, -17.22, 59.41)
CIE-LCHlch(65.31, 61.86, 106.17°)
OKLaboklab(69.5% -0.0536 0.1305)
OKLCHoklch(69.5% 0.141 112.3)
XYZxyz(28.1371, 34.4351, 7.1715)
Luminance0.3443 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FA528 #2E28A5
analogous
#A56C28 #9FA528 #60A528
triadic
#9FA528 #289FA5 #A5289F
tetradic
#9FA528 #28A56C #2E28A5 #A52860
square
#9FA528 #28A56C #2E28A5 #A52860
split-complementary
#9FA528 #2860A5 #6C28A5
monochromatic
#404210 #70741C #9FA528 #C8CF3B #D6DB6C

Accessibility & contrast

On white

2.66
#9FA528 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.89
#9FA528 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FA528
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FA528#FFFFFF#000000##000000
##9FA5281.002.667.897.89
#FFFFFF2.661.0021.0021.00
#0000007.8921.001.001.00
##0000007.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29D09
Deuteranopia (green-blind)
#B2A033
Tritanopia (blue-blind)
#AA9B8D
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #9fa528;
/* rgb */ color: rgb(159, 165, 40);
/* oklch */ color: oklch(69.5% 0.141 112.3);
Tailwind
colors: {
  custom: {
    50: '#bfbf6c',
    500: '#9fa528',
    950: '#000000',
  },
}
SCSS
$custom: #9fa528;
$custom-light: #bfbf6c;
$custom-dark: #000000;
JSON
{
  "hex": "#9fa528",
  "rgb": {
    "r": 159,
    "g": 165,
    "b": 40
  },
  "hsl": {
    "h": 62.88,
    "s": 60.976,
    "l": 40.196
  },
  "oklch": {
    "l": 0.69501,
    "c": 0.14107,
    "h": 112.3
  },
  "luminance": 0.34434
}

Semantic roles & 50–950 ramp

primary
#9FA528
secondary
#6B67C2
accent
#44E44B
background
#FCFBF6
surface
#F8F7EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #9FA528

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

Preview Lab → · Contrast checker → · Palette generator →

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