#9D8D25#9D8D25

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

Color values

HEX#9D8D25
RGBrgb(157, 141, 37)
HSLhsl(52, 62%, 38%)
HSVhsv(52, 76%, 62%)
CMYKcmyk(0%, 10.2%, 76.4%, 38.4%)
CIE-LABlab(58.37, -5.57, 53.92)
CIE-LCHlch(58.37, 54.20, 95.90°)
OKLaboklab(63.92% -0.0212 0.1183)
OKLCHoklch(63.92% 0.12 100.1)
XYZxyz(23.7646, 26.3526, 5.5847)
Luminance0.2635 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8D25 #25359D
analogous
#9D5125 #9D8D25 #719D25
triadic
#9D8D25 #259D8D #8D259D
tetradic
#9D8D25 #259D51 #25359D #9D2571
square
#9D8D25 #259D51 #25359D #9D2571
split-complementary
#9D8D25 #25719D #51259D
monochromatic
#3A340E #6B6119 #9D8D25 #CEB931 #DACA62

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D8D25#FFFFFF#000000##000000
##9D8D251.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)
#9B8910
Deuteranopia (green-blind)
#9F8F2C
Tritanopia (blue-blind)
#AA8279
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #9d8d25;
/* rgb */ color: rgb(157, 141, 37);
/* oklch */ color: oklch(63.9% 0.120 100.1);
Tailwind
colors: {
  custom: {
    50: '#beae68',
    500: '#9d8d25',
    950: '#000000',
  },
}
SCSS
$custom: #9d8d25;
$custom-light: #beae68;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8d25",
  "rgb": {
    "r": 157,
    "g": 141,
    "b": 37
  },
  "hsl": {
    "h": 52,
    "s": 61.856,
    "l": 38.039
  },
  "oklch": {
    "l": 0.63924,
    "c": 0.12018,
    "h": 100.1
  },
  "luminance": 0.26351
}

Semantic roles & 50–950 ramp

primary
#9D8D25
secondary
#5E6BBF
accent
#58E543
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131007
muted
#827F7A

Preview Lab

Preview with #9D8D25

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

Preview Lab → · Contrast checker → · Palette generator →

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