#9FA042#9FA042

#9FA042 is a light, moderate yellow. Relative luminance 0.329; OKLCH L 68.6% C 0.117 H 109.7°. Best body text is #000000 at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#9FA042
RGBrgb(159, 160, 66)
HSLhsl(61, 42%, 44%)
HSVhsv(61, 59%, 63%)
CMYKcmyk(0.6%, 0%, 58.8%, 37.3%)
CIE-LABlab(64.09, -13.09, 47.73)
CIE-LCHlch(64.09, 49.49, 105.33°)
OKLaboklab(68.59% -0.0394 0.11)
OKLCHoklch(68.59% 0.117 109.7)
XYZxyz(27.8530, 32.9066, 10.0376)
Luminance0.3291 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FA042 #4342A0
analogous
#A07242 #9FA042 #70A042
triadic
#9FA042 #429FA0 #A0429F
tetradic
#9FA042 #42A072 #4342A0 #A04270
square
#9FA042 #42A072 #4342A0 #A04270
split-complementary
#9FA042 #4270A0 #7242A0
monochromatic
#49491E #747530 #9FA042 #BDBE61 #CFD08D

Accessibility & contrast

On white

2.77
#9FA042 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.58
#9FA042 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FA042
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FA042#FFFFFF#000000##000000
##9FA0421.002.777.587.58
#FFFFFF2.771.0021.0021.00
#0000007.5821.001.001.00
##0000007.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#AC9A38
Deuteranopia (green-blind)
#AD9D47
Tritanopia (blue-blind)
#A9978C
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #9fa042;
/* rgb */ color: rgb(159, 160, 66);
/* oklch */ color: oklch(68.6% 0.117 109.7);
Tailwind
colors: {
  custom: {
    50: '#bebb7a',
    500: '#9fa042',
    950: '#000000',
  },
}
SCSS
$custom: #9fa042;
$custom-light: #bebb7a;
$custom-dark: #000000;
JSON
{
  "hex": "#9fa042",
  "rgb": {
    "r": 159,
    "g": 160,
    "b": 66
  },
  "hsl": {
    "h": 60.638,
    "s": 41.593,
    "l": 44.314
  },
  "oklch": {
    "l": 0.68587,
    "c": 0.11682,
    "h": 109.7
  },
  "luminance": 0.32906
}

Semantic roles & 50–950 ramp

primary
#9FA042
secondary
#8483BB
accent
#56D158
background
#FBFBF7
surface
#F7F6EE
border
#D0D0C9
text
#121109
muted
#81807B

Preview Lab

Preview with #9FA042

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

Preview Lab → · Contrast checker → · Palette generator →

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