#9D9521#9D9521

#9D9521 is a light, vivid yellow. Relative luminance 0.288; OKLCH L 65.7% C 0.129 H 105.3°. Best body text is #000000 at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#9D9521
RGBrgb(157, 149, 33)
HSLhsl(56, 65%, 37%)
HSVhsv(56, 79%, 62%)
CMYKcmyk(0%, 5.1%, 79%, 38.4%)
CIE-LABlab(60.58, -10.04, 57.31)
CIE-LCHlch(60.58, 58.18, 99.94°)
OKLaboklab(65.68% -0.0341 0.1248)
OKLCHoklch(65.68% 0.129 105.3)
XYZxyz(24.9277, 28.7738, 5.6794)
Luminance0.2877 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D9521 #21299D
analogous
#9D5721 #9D9521 #679D21
triadic
#9D9521 #219D95 #95219D
tetradic
#9D9521 #219D57 #21299D #9D2167
square
#9D9521 #219D57 #21299D #9D2167
split-complementary
#9D9521 #21679D #57219D
monochromatic
#38350C #6A6516 #9D9521 #D0C52C #DDD45C

Accessibility & contrast

On white

3.11
#9D9521 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.75
#9D9521 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D9521
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D9521#FFFFFF#000000##000000
##9D95211.003.116.756.75
#FFFFFF3.111.0021.0021.00
#0000006.7521.001.001.00
##0000006.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#A38F01
Deuteranopia (green-blind)
#A6942B
Tritanopia (blue-blind)
#A98A7F
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #9d9521;
/* rgb */ color: rgb(157, 149, 33);
/* oklch */ color: oklch(65.7% 0.129 105.3);
Tailwind
colors: {
  custom: {
    50: '#beb367',
    500: '#9d9521',
    950: '#000000',
  },
}
SCSS
$custom: #9d9521;
$custom-light: #beb367;
$custom-dark: #000000;
JSON
{
  "hex": "#9d9521",
  "rgb": {
    "r": 157,
    "g": 149,
    "b": 33
  },
  "hsl": {
    "h": 56.129,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.65675,
    "c": 0.12933,
    "h": 105.3
  },
  "luminance": 0.28773
}

Semantic roles & 50–950 ramp

primary
#9D9521
secondary
#5960C1
accent
#4AE840
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131106
muted
#82807A

Preview Lab

Preview with #9D9521

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

Preview Lab → · Contrast checker → · Palette generator →

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