#9A9157#9A9157

#9A9157 is a light, moderate yellow. Relative luminance 0.278; OKLCH L 65.1% C 0.079 H 100.6°. Best body text is #000000 at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#9A9157
RGBrgb(154, 145, 87)
HSLhsl(52, 28%, 47%)
HSVhsv(52, 44%, 60%)
CMYKcmyk(0%, 5.8%, 43.5%, 39.6%)
CIE-LABlab(59.72, -5.27, 31.92)
CIE-LCHlch(59.72, 32.35, 99.37°)
OKLaboklab(65.09% -0.0145 0.0775)
OKLCHoklch(65.09% 0.079 100.6)
XYZxyz(25.1727, 27.8097, 13.0568)
Luminance0.2781 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A9157 #57609A
analogous
#9A6F57 #9A9157 #829A57
triadic
#9A9157 #579A91 #91579A
tetradic
#9A9157 #579A6F #57609A #9A5782
square
#9A9157 #579A6F #57609A #9A5782
split-complementary
#9A9157 #57829A #6F579A
monochromatic
#4C472B #736C41 #9A9157 #B4AC7A #CAC5A1

Accessibility & contrast

On white

3.20
#9A9157 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.56
#9A9157 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A9157
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A9157#FFFFFF#000000##000000
##9A91571.003.206.566.56
#FFFFFF3.201.0021.0021.00
#0000006.5621.001.001.00
##0000006.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8E52
Deuteranopia (green-blind)
#9E9259
Tritanopia (blue-blind)
#A38A83
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #9a9157;
/* rgb */ color: rgb(154, 145, 87);
/* oklch */ color: oklch(65.1% 0.079 100.6);
Tailwind
colors: {
  custom: {
    50: '#b9b187',
    500: '#9a9157',
    950: '#000000',
  },
}
SCSS
$custom: #9a9157;
$custom-light: #b9b187;
$custom-dark: #000000;
JSON
{
  "hex": "#9a9157",
  "rgb": {
    "r": 154,
    "g": 145,
    "b": 87
  },
  "hsl": {
    "h": 51.94,
    "s": 27.801,
    "l": 47.255
  },
  "oklch": {
    "l": 0.6509,
    "c": 0.0788,
    "h": 100.6
  },
  "luminance": 0.27809
}

Semantic roles & 50–950 ramp

primary
#9A9157
secondary
#959AB8
accent
#71C464
background
#FBFAF8
surface
#F6F4EF
border
#D0CECA
text
#12100B
muted
#817F7C

Preview Lab

Preview with #9A9157

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

Preview Lab → · Contrast checker → · Palette generator →

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