#9D9731#9D9731

#9D9731 is a light, vivid yellow. Relative luminance 0.295; OKLCH L 66.2% C 0.121 H 106.0°. Best body text is #000000 at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#9D9731
RGBrgb(157, 151, 49)
HSLhsl(57, 52%, 40%)
HSVhsv(57, 69%, 62%)
CMYKcmyk(0%, 3.8%, 68.8%, 38.4%)
CIE-LABlab(61.24, -10.34, 52.08)
CIE-LCHlch(61.24, 53.09, 101.23°)
OKLaboklab(66.23% -0.0334 0.1167)
OKLCHoklch(66.23% 0.121 106)
XYZxyz(25.5266, 29.5240, 7.2592)
Luminance0.2952 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D9731 #31379D
analogous
#9D6131 #9D9731 #6D9D31
triadic
#9D9731 #319D97 #97319D
tetradic
#9D9731 #319D61 #31379D #9D316D
square
#9D9731 #319D61 #31379D #9D316D
split-complementary
#9D9731 #316D9D #61319D
monochromatic
#403D14 #6E6A22 #9D9731 #C5BE46 #D4CF75

Accessibility & contrast

On white

3.04
#9D9731 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.90
#9D9731 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D9731
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D9731#FFFFFF#000000##000000
##9D97311.003.046.906.90
#FFFFFF3.041.0021.0021.00
#0000006.9021.001.001.00
##0000006.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#A49122
Deuteranopia (green-blind)
#A69638
Tritanopia (blue-blind)
#A88D82
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #9d9731;
/* rgb */ color: rgb(157, 151, 49);
/* oklch */ color: oklch(66.2% 0.121 106.0);
Tailwind
colors: {
  custom: {
    50: '#bdb56f',
    500: '#9d9731',
    950: '#000000',
  },
}
SCSS
$custom: #9d9731;
$custom-light: #bdb56f;
$custom-dark: #000000;
JSON
{
  "hex": "#9d9731",
  "rgb": {
    "r": 157,
    "g": 151,
    "b": 49
  },
  "hsl": {
    "h": 56.667,
    "s": 52.427,
    "l": 40.392
  },
  "oklch": {
    "l": 0.66232,
    "c": 0.12134,
    "h": 106
  },
  "luminance": 0.29523
}

Semantic roles & 50–950 ramp

primary
#9D9731
secondary
#6E72BC
accent
#54DC4C
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#121108
muted
#81807B

Preview Lab

Preview with #9D9731

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

Preview Lab → · Contrast checker → · Palette generator →

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