#9FA526#9FA526

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

Color values

HEX#9FA526
RGBrgb(159, 165, 38)
HSLhsl(63, 63%, 40%)
HSVhsv(63, 77%, 65%)
CMYKcmyk(3.6%, 0%, 77%, 35.3%)
CIE-LABlab(65.30, -17.31, 60.06)
CIE-LCHlch(65.30, 62.50, 106.08°)
OKLaboklab(69.49% -0.054 0.1315)
OKLCHoklch(69.49% 0.142 112.3)
XYZxyz(28.1040, 34.4218, 6.9970)
Luminance0.3442 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FA526 #2C26A5
analogous
#A56C26 #9FA526 #5FA526
triadic
#9FA526 #269FA5 #A5269F
tetradic
#9FA526 #26A56C #2C26A5 #A5265F
square
#9FA526 #26A56C #2C26A5 #A5265F
split-complementary
#9FA526 #265FA5 #6C26A5
monochromatic
#3F420F #6F731B #9FA526 #CAD137 #D7DC69

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9FA526#FFFFFF#000000##000000
##9FA5261.002.667.887.88
#FFFFFF2.661.0021.0021.00
#0000007.8821.001.001.00
##0000007.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29D03
Deuteranopia (green-blind)
#B2A031
Tritanopia (blue-blind)
#AA9B8D
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #9fa526;
/* rgb */ color: rgb(159, 165, 38);
/* oklch */ color: oklch(69.5% 0.142 112.3);
Tailwind
colors: {
  custom: {
    50: '#bfbf6b',
    500: '#9fa526',
    950: '#000000',
  },
}
SCSS
$custom: #9fa526;
$custom-light: #bfbf6b;
$custom-dark: #000000;
JSON
{
  "hex": "#9fa526",
  "rgb": {
    "r": 159,
    "g": 165,
    "b": 38
  },
  "hsl": {
    "h": 62.835,
    "s": 62.562,
    "l": 39.804
  },
  "oklch": {
    "l": 0.6949,
    "c": 0.14215,
    "h": 112.3
  },
  "luminance": 0.34421
}

Semantic roles & 50–950 ramp

primary
#9FA526
secondary
#6964C3
accent
#42E64A
background
#FCFBF6
surface
#F8F7EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #9FA526

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

Preview Lab → · Contrast checker → · Palette generator →

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