#9D8D1B#9D8D1B

#9D8D1B is a light, vivid yellow. Relative luminance 0.263; OKLCH L 63.9% C 0.125 H 100.6°. Best body text is #000000 at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#9D8D1B
RGBrgb(157, 141, 27)
HSLhsl(53, 71%, 36%)
HSVhsv(53, 83%, 62%)
CMYKcmyk(0%, 10.2%, 82.8%, 38.4%)
CIE-LABlab(58.32, -5.95, 57.15)
CIE-LCHlch(58.32, 57.46, 95.94°)
OKLaboklab(63.87% -0.0231 0.1232)
OKLCHoklch(63.87% 0.125 100.6)
XYZxyz(23.6285, 26.2981, 4.8682)
Luminance0.2630 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8D1B #1B2B9D
analogous
#9D4C1B #9D8D1B #6C9D1B
triadic
#9D8D1B #1B9D8D #8D1B9D
tetradic
#9D8D1B #1B9D4C #1B2B9D #9D1B6C
square
#9D8D1B #1B9D4C #1B2B9D #9D1B6C
split-complementary
#9D8D1B #1B6C9D #4C1B9D
monochromatic
#352F09 #695E12 #9D8D1B #D1BC24 #E1CF51

Accessibility & contrast

On white

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

On black

6.26
#9D8D1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8D1B
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8D1B#FFFFFF#000000##000000
##9D8D1B1.003.356.266.26
#FFFFFF3.351.0021.0021.00
#0000006.2621.001.001.00
##0000006.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8900
Deuteranopia (green-blind)
#A08F25
Tritanopia (blue-blind)
#AA8278
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #9d8d1b;
/* rgb */ color: rgb(157, 141, 27);
/* oklch */ color: oklch(63.9% 0.125 100.6);
Tailwind
colors: {
  custom: {
    50: '#bead63',
    500: '#9d8d1b',
    950: '#000000',
  },
}
SCSS
$custom: #9d8d1b;
$custom-light: #bead63;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8d1b",
  "rgb": {
    "r": 157,
    "g": 141,
    "b": 27
  },
  "hsl": {
    "h": 52.615,
    "s": 70.652,
    "l": 36.078
  },
  "oklch": {
    "l": 0.63867,
    "c": 0.12537,
    "h": 100.6
  },
  "luminance": 0.26297
}

Semantic roles & 50–950 ramp

primary
#9D8D1B
secondary
#505EC4
accent
#50ED3A
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9D8D1B

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

Preview Lab → · Contrast checker → · Palette generator →

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