#9D8925#9D8925

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

Color values

HEX#9D8925
RGBrgb(157, 137, 37)
HSLhsl(50, 62%, 38%)
HSVhsv(50, 76%, 62%)
CMYKcmyk(0%, 12.7%, 76.4%, 38.4%)
CIE-LABlab(57.26, -3.38, 52.87)
CIE-LCHlch(57.26, 52.98, 93.66°)
OKLaboklab(63.05% -0.015 0.1161)
OKLCHoklch(63.05% 0.117 97.3)
XYZxyz(23.1854, 25.1942, 5.3916)
Luminance0.2519 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8925 #25399D
analogous
#9D4D25 #9D8925 #759D25
triadic
#9D8925 #259D89 #89259D
tetradic
#9D8925 #259D4D #25399D #9D2575
square
#9D8925 #259D4D #25399D #9D2575
split-complementary
#9D8925 #25759D #4D259D
monochromatic
#3A330E #6B5E19 #9D8925 #CEB431 #DAC662

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D8925#FFFFFF#000000##000000
##9D89251.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)
#978612
Deuteranopia (green-blind)
#9D8C2C
Tritanopia (blue-blind)
#AA7E76
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #9d8925;
/* rgb */ color: rgb(157, 137, 37);
/* oklch */ color: oklch(63.0% 0.117 97.3);
Tailwind
colors: {
  custom: {
    50: '#beab67',
    500: '#9d8925',
    950: '#000000',
  },
}
SCSS
$custom: #9d8925;
$custom-light: #beab67;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8925",
  "rgb": {
    "r": 157,
    "g": 137,
    "b": 37
  },
  "hsl": {
    "h": 50,
    "s": 61.856,
    "l": 38.039
  },
  "oklch": {
    "l": 0.63047,
    "c": 0.11704,
    "h": 97.3
  },
  "luminance": 0.25193
}

Semantic roles & 50–950 ramp

primary
#9D8925
secondary
#5E6FBF
accent
#5EE543
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9D8925

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

Preview Lab → · Contrast checker → · Palette generator →

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