#9D8D28#9D8D28

#9D8D28 is a light, moderate yellow. Relative luminance 0.264; OKLCH L 63.9% C 0.118 H 100.0°. Best body text is #000000 at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#9D8D28
RGBrgb(157, 141, 40)
HSLhsl(52, 59%, 39%)
HSVhsv(52, 75%, 62%)
CMYKcmyk(0%, 10.2%, 74.5%, 38.4%)
CIE-LABlab(58.39, -5.43, 52.82)
CIE-LCHlch(58.39, 53.10, 95.87°)
OKLaboklab(63.94% -0.0205 0.1166)
OKLCHoklch(63.94% 0.118 100)
XYZxyz(23.8136, 26.3722, 5.8431)
Luminance0.2637 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8D28 #28389D
analogous
#9D5228 #9D8D28 #729D28
triadic
#9D8D28 #289D8D #8D289D
tetradic
#9D8D28 #289D52 #28389D #9D2872
square
#9D8D28 #289D52 #28389D #9D2872
split-complementary
#9D8D28 #28729D #52289D
monochromatic
#3B350F #6C611C #9D8D28 #CCB736 #D8C967

Accessibility & contrast

On white

3.35
#9D8D28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.27
#9D8D28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8D28
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8D28#FFFFFF#000000##000000
##9D8D281.003.356.276.27
#FFFFFF3.351.0021.0021.00
#0000006.2721.001.001.00
##0000006.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8916
Deuteranopia (green-blind)
#9F8F2F
Tritanopia (blue-blind)
#A98279
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #9d8d28;
/* rgb */ color: rgb(157, 141, 40);
/* oklch */ color: oklch(63.9% 0.118 100.0);
Tailwind
colors: {
  custom: {
    50: '#bdae69',
    500: '#9d8d28',
    950: '#000000',
  },
}
SCSS
$custom: #9d8d28;
$custom-light: #bdae69;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8d28",
  "rgb": {
    "r": 157,
    "g": 141,
    "b": 40
  },
  "hsl": {
    "h": 51.795,
    "s": 59.391,
    "l": 38.627
  },
  "oklch": {
    "l": 0.63944,
    "c": 0.11834,
    "h": 100
  },
  "luminance": 0.26371
}

Semantic roles & 50–950 ramp

primary
#9D8D28
secondary
#626FBE
accent
#5BE345
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131007
muted
#827F7A

Preview Lab

Preview with #9D8D28

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

Preview Lab → · Contrast checker → · Palette generator →

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