#9FA040#9FA040

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

Color values

HEX#9FA040
RGBrgb(159, 160, 64)
HSLhsl(61, 43%, 44%)
HSVhsv(61, 60%, 63%)
CMYKcmyk(0.6%, 0%, 60%, 37.3%)
CIE-LABlab(64.07, -13.23, 48.62)
CIE-LCHlch(64.07, 50.39, 105.23°)
OKLaboklab(68.57% -0.04 0.1116)
OKLCHoklch(68.57% 0.119 109.7)
XYZxyz(27.7951, 32.8834, 9.7325)
Luminance0.3288 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FA040 #4140A0
analogous
#A07140 #9FA040 #6FA040
triadic
#9FA040 #409FA0 #A0409F
tetradic
#9FA040 #40A071 #4140A0 #A0406F
square
#9FA040 #40A071 #4140A0 #A0406F
split-complementary
#9FA040 #406FA0 #7140A0
monochromatic
#48491D #74742F #9FA040 #BEBF5E #D0D08A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9FA040#FFFFFF#000000##000000
##9FA0401.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)
#AC9A35
Deuteranopia (green-blind)
#AD9D46
Tritanopia (blue-blind)
#A9978C
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #9fa040;
/* rgb */ color: rgb(159, 160, 64);
/* oklch */ color: oklch(68.6% 0.119 109.7);
Tailwind
colors: {
  custom: {
    50: '#bebb79',
    500: '#9fa040',
    950: '#000000',
  },
}
SCSS
$custom: #9fa040;
$custom-light: #bebb79;
$custom-dark: #000000;
JSON
{
  "hex": "#9fa040",
  "rgb": {
    "r": 159,
    "g": 160,
    "b": 64
  },
  "hsl": {
    "h": 60.625,
    "s": 42.857,
    "l": 43.922
  },
  "oklch": {
    "l": 0.68565,
    "c": 0.11857,
    "h": 109.7
  },
  "luminance": 0.32883
}

Semantic roles & 50–950 ramp

primary
#9FA040
secondary
#8181BB
accent
#55D356
background
#FBFBF7
surface
#F7F6EE
border
#D0D0C9
text
#121109
muted
#81807B

Preview Lab

Preview with #9FA040

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

Preview Lab → · Contrast checker → · Palette generator →

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