#9FA252#9FA252

#9FA252 is a light, moderate yellow. Relative luminance 0.338; OKLCH L 69.2% C 0.104 H 110.7°. Best body text is #000000 at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#9FA252
RGBrgb(159, 162, 82)
HSLhsl(62, 33%, 48%)
HSVhsv(62, 49%, 64%)
CMYKcmyk(1.9%, 0%, 49.4%, 36.5%)
CIE-LABlab(64.82, -12.76, 40.88)
CIE-LCHlch(64.82, 42.82, 107.33°)
OKLaboklab(69.23% -0.0367 0.0969)
OKLCHoklch(69.23% 0.104 110.7)
XYZxyz(28.7420, 33.8214, 12.9951)
Luminance0.3382 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FA252 #5552A2
analogous
#A27D52 #9FA252 #77A252
triadic
#9FA252 #529FA2 #A2529F
tetradic
#9FA252 #52A27D #5552A2 #A25277
square
#9FA252 #52A27D #5552A2 #A25277
split-complementary
#9FA252 #5277A2 #7D52A2
monochromatic
#4F5129 #77793D #9FA252 #B8BA77 #CDCFA0

Accessibility & contrast

On white

2.70
#9FA252 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.76
#9FA252 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FA252
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FA252#FFFFFF#000000##000000
##9FA2521.002.707.767.76
#FFFFFF2.701.0021.0021.00
#0000007.7621.001.001.00
##0000007.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9C4B
Deuteranopia (green-blind)
#AD9E56
Tritanopia (blue-blind)
#A89A90
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #9fa252;
/* rgb */ color: rgb(159, 162, 82);
/* oklch */ color: oklch(69.2% 0.104 110.7);
Tailwind
colors: {
  custom: {
    50: '#bdbd85',
    500: '#9fa252',
    950: '#000000',
  },
}
SCSS
$custom: #9fa252;
$custom-light: #bdbd85;
$custom-dark: #000000;
JSON
{
  "hex": "#9fa252",
  "rgb": {
    "r": 159,
    "g": 162,
    "b": 82
  },
  "hsl": {
    "h": 62.25,
    "s": 32.787,
    "l": 47.843
  },
  "oklch": {
    "l": 0.69229,
    "c": 0.10365,
    "h": 110.7
  },
  "luminance": 0.33821
}

Semantic roles & 50–950 ramp

primary
#9FA252
secondary
#9594BC
accent
#5FC963
background
#FBFBF8
surface
#F7F6EF
border
#D0D0CA
text
#12120B
muted
#81817C

Preview Lab

Preview with #9FA252

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

Preview Lab → · Contrast checker → · Palette generator →

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