#9D9728#9D9728

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

Color values

HEX#9D9728
RGBrgb(157, 151, 40)
HSLhsl(57, 59%, 39%)
HSVhsv(57, 75%, 62%)
CMYKcmyk(0%, 3.8%, 74.5%, 38.4%)
CIE-LABlab(61.18, -10.81, 55.48)
CIE-LCHlch(61.18, 56.53, 101.02°)
OKLaboklab(66.16% -0.0356 0.1222)
OKLCHoklch(66.16% 0.127 106.2)
XYZxyz(25.3553, 29.4554, 6.3569)
Luminance0.2945 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D9728 #282E9D
analogous
#9D5C28 #9D9728 #689D28
triadic
#9D9728 #289D97 #97289D
tetradic
#9D9728 #289D5C #282E9D #9D2868
square
#9D9728 #289D5C #282E9D #9D2868
split-complementary
#9D9728 #28689D #5C289D
monochromatic
#3B390F #6C681C #9D9728 #CCC436 #D8D267

Accessibility & contrast

On white

3.05
#9D9728 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.89
#9D9728 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D9728
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D9728#FFFFFF#000000##000000
##9D97281.003.056.896.89
#FFFFFF3.051.0021.0021.00
#0000006.8921.001.001.00
##0000006.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#A49112
Deuteranopia (green-blind)
#A79630
Tritanopia (blue-blind)
#A98D82
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #9d9728;
/* rgb */ color: rgb(157, 151, 40);
/* oklch */ color: oklch(66.2% 0.127 106.2);
Tailwind
colors: {
  custom: {
    50: '#bdb56b',
    500: '#9d9728',
    950: '#000000',
  },
}
SCSS
$custom: #9d9728;
$custom-light: #bdb56b;
$custom-dark: #000000;
JSON
{
  "hex": "#9d9728",
  "rgb": {
    "r": 157,
    "g": 151,
    "b": 40
  },
  "hsl": {
    "h": 56.923,
    "s": 59.391,
    "l": 38.627
  },
  "oklch": {
    "l": 0.66165,
    "c": 0.1273,
    "h": 106.2
  },
  "luminance": 0.29455
}

Semantic roles & 50–950 ramp

primary
#9D9728
secondary
#6267BE
accent
#4DE345
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131107
muted
#82807A

Preview Lab

Preview with #9D9728

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

Preview Lab → · Contrast checker → · Palette generator →

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