#9FA255#9FA255

#9FA255 is a light, moderate yellow. Relative luminance 0.339; OKLCH L 69.3% C 0.100 H 110.7°. Best body text is #000000 at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#9FA255
RGBrgb(159, 162, 85)
HSLhsl(62, 31%, 48%)
HSVhsv(62, 48%, 64%)
CMYKcmyk(1.9%, 0%, 47.5%, 36.5%)
CIE-LABlab(64.86, -12.47, 39.41)
CIE-LCHlch(64.86, 41.34, 107.55°)
OKLaboklab(69.27% -0.0356 0.094)
OKLCHoklch(69.27% 0.1 110.7)
XYZxyz(28.8586, 33.8680, 13.6095)
Luminance0.3387 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FA255 #5855A2
analogous
#A27E55 #9FA255 #78A255
triadic
#9FA255 #559FA2 #A2559F
tetradic
#9FA255 #55A27E #5855A2 #A25578
square
#9FA255 #55A27E #5855A2 #A25578
split-complementary
#9FA255 #5578A2 #7E55A2
monochromatic
#50522B #787A40 #9FA255 #B7BA7B #CDCFA3

Accessibility & contrast

On white

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

On black

7.77
#9FA255 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FA255
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FA255#FFFFFF#000000##000000
##9FA2551.002.707.777.77
#FFFFFF2.701.0021.0021.00
#0000007.7721.001.001.00
##0000007.7721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9fa255;
/* rgb */ color: rgb(159, 162, 85);
/* oklch */ color: oklch(69.3% 0.100 110.7);
Tailwind
colors: {
  custom: {
    50: '#bdbd87',
    500: '#9fa255',
    950: '#000000',
  },
}
SCSS
$custom: #9fa255;
$custom-light: #bdbd87;
$custom-dark: #000000;
JSON
{
  "hex": "#9fa255",
  "rgb": {
    "r": 159,
    "g": 162,
    "b": 85
  },
  "hsl": {
    "h": 62.338,
    "s": 31.174,
    "l": 48.431
  },
  "oklch": {
    "l": 0.69271,
    "c": 0.10048,
    "h": 110.7
  },
  "luminance": 0.33867
}

Semantic roles & 50–950 ramp

primary
#9FA255
secondary
#9897BC
accent
#60C764
background
#FBFBF8
surface
#F7F6EF
border
#D0D0CA
text
#12120B
muted
#81817C

Preview Lab

Preview with #9FA255

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

Preview Lab → · Contrast checker → · Palette generator →

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