#9D9231#9D9231

#9D9231 is a light, moderate yellow. Relative luminance 0.279; OKLCH L 65.1% C 0.117 H 102.8°. Best body text is #000000 at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#9D9231
RGBrgb(157, 146, 49)
HSLhsl(54, 52%, 40%)
HSVhsv(54, 69%, 62%)
CMYKcmyk(0%, 7%, 68.8%, 38.4%)
CIE-LABlab(59.84, -7.67, 50.66)
CIE-LCHlch(59.84, 51.23, 98.61°)
OKLaboklab(65.12% -0.0258 0.1137)
OKLCHoklch(65.12% 0.117 102.8)
XYZxyz(24.7389, 27.9486, 6.9966)
Luminance0.2795 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D9231 #313C9D
analogous
#9D5C31 #9D9231 #729D31
triadic
#9D9231 #319D92 #92319D
tetradic
#9D9231 #319D5C #313C9D #9D3172
square
#9D9231 #319D5C #313C9D #9D3172
split-complementary
#9D9231 #31729D #5C319D
monochromatic
#403B14 #6E6722 #9D9231 #C5B846 #D4CA75

Accessibility & contrast

On white

3.19
#9D9231 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.59
#9D9231 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D9231
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D9231#FFFFFF#000000##000000
##9D92311.003.196.596.59
#FFFFFF3.191.0021.0021.00
#0000006.5921.001.001.00
##0000006.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#9F8D23
Deuteranopia (green-blind)
#A39237
Tritanopia (blue-blind)
#A9887E
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #9d9231;
/* rgb */ color: rgb(157, 146, 49);
/* oklch */ color: oklch(65.1% 0.117 102.8);
Tailwind
colors: {
  custom: {
    50: '#bdb16f',
    500: '#9d9231',
    950: '#000000',
  },
}
SCSS
$custom: #9d9231;
$custom-light: #bdb16f;
$custom-dark: #000000;
JSON
{
  "hex": "#9d9231",
  "rgb": {
    "r": 157,
    "g": 146,
    "b": 49
  },
  "hsl": {
    "h": 53.889,
    "s": 52.427,
    "l": 40.392
  },
  "oklch": {
    "l": 0.65119,
    "c": 0.11655,
    "h": 102.8
  },
  "luminance": 0.27948
}

Semantic roles & 50–950 ramp

primary
#9D9231
secondary
#6E76BC
accent
#5BDC4C
background
#FCFAF6
surface
#F8F5EC
border
#D1CFC7
text
#121008
muted
#817F7B

Preview Lab

Preview with #9D9231

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

Preview Lab → · Contrast checker → · Palette generator →

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