#9D8A1D#9D8A1D

#9D8A1D is a light, vivid yellow. Relative luminance 0.254; OKLCH L 63.2% C 0.122 H 98.6°. Best body text is #000000 at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#9D8A1D
RGBrgb(157, 138, 29)
HSLhsl(51, 69%, 36%)
HSVhsv(51, 82%, 62%)
CMYKcmyk(0%, 12.1%, 81.5%, 38.4%)
CIE-LABlab(57.50, -4.25, 55.83)
CIE-LCHlch(57.50, 55.99, 94.35°)
OKLaboklab(63.22% -0.0182 0.1208)
OKLCHoklch(63.22% 0.122 98.6)
XYZxyz(23.2161, 25.4350, 4.8487)
Luminance0.2543 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8A1D #1D309D
analogous
#9D4A1D #9D8A1D #709D1D
triadic
#9D8A1D #1D9D8A #8A1D9D
tetradic
#9D8A1D #1D9D4A #1D309D #9D1D70
square
#9D8A1D #1D9D4A #1D309D #9D1D70
split-complementary
#9D8A1D #1D709D #4A1D9D
monochromatic
#362F0A #695D13 #9D8A1D #D1B727 #E0CB55

Accessibility & contrast

On white

3.45
#9D8A1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.09
#9D8A1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8A1D
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8A1D#FFFFFF#000000##000000
##9D8A1D1.003.456.096.09
#FFFFFF3.451.0021.0021.00
#0000006.0921.001.001.00
##0000006.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#998600
Deuteranopia (green-blind)
#9E8D25
Tritanopia (blue-blind)
#AA7F76
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9d8a1d;
/* rgb */ color: rgb(157, 138, 29);
/* oklch */ color: oklch(63.2% 0.122 98.6);
Tailwind
colors: {
  custom: {
    50: '#beab64',
    500: '#9d8a1d',
    950: '#000000',
  },
}
SCSS
$custom: #9d8a1d;
$custom-light: #beab64;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8a1d",
  "rgb": {
    "r": 157,
    "g": 138,
    "b": 29
  },
  "hsl": {
    "h": 51.094,
    "s": 68.817,
    "l": 36.471
  },
  "oklch": {
    "l": 0.63218,
    "c": 0.12212,
    "h": 98.6
  },
  "luminance": 0.25434
}

Semantic roles & 50–950 ramp

primary
#9D8A1D
secondary
#5364C3
accent
#56EC3C
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9D8A1D

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

Preview Lab → · Contrast checker → · Palette generator →

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