#9D8928#9D8928

#9D8928 is a light, moderate yellow. Relative luminance 0.252; OKLCH L 63.1% C 0.115 H 97.1°. Best body text is #000000 at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#9D8928
RGBrgb(157, 137, 40)
HSLhsl(50, 59%, 39%)
HSVhsv(50, 75%, 62%)
CMYKcmyk(0%, 12.7%, 74.5%, 38.4%)
CIE-LABlab(57.28, -3.24, 51.75)
CIE-LCHlch(57.28, 51.85, 93.59°)
OKLaboklab(63.07% -0.0142 0.1143)
OKLCHoklch(63.07% 0.115 97.1)
XYZxyz(23.2345, 25.2138, 5.6500)
Luminance0.2521 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8928 #283C9D
analogous
#9D4E28 #9D8928 #769D28
triadic
#9D8928 #289D89 #89289D
tetradic
#9D8928 #289D4E #283C9D #9D2876
square
#9D8928 #289D4E #283C9D #9D2876
split-complementary
#9D8928 #28769D #4E289D
monochromatic
#3B340F #6C5E1C #9D8928 #CCB236 #D8C567

Accessibility & contrast

On white

3.48
#9D8928 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.04
#9D8928 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8928
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8928#FFFFFF#000000##000000
##9D89281.003.486.046.04
#FFFFFF3.481.0021.0021.00
#0000006.0421.001.001.00
##0000006.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#978618
Deuteranopia (green-blind)
#9C8C2E
Tritanopia (blue-blind)
#AA7E76
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #9d8928;
/* rgb */ color: rgb(157, 137, 40);
/* oklch */ color: oklch(63.1% 0.115 97.1);
Tailwind
colors: {
  custom: {
    50: '#beab69',
    500: '#9d8928',
    950: '#000000',
  },
}
SCSS
$custom: #9d8928;
$custom-light: #beab69;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8928",
  "rgb": {
    "r": 157,
    "g": 137,
    "b": 40
  },
  "hsl": {
    "h": 49.744,
    "s": 59.391,
    "l": 38.627
  },
  "oklch": {
    "l": 0.63068,
    "c": 0.11518,
    "h": 97.1
  },
  "luminance": 0.25213
}

Semantic roles & 50–950 ramp

primary
#9D8928
secondary
#6272BE
accent
#60E345
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131007
muted
#827F7A

Preview Lab

Preview with #9D8928

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

Preview Lab → · Contrast checker → · Palette generator →

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