#9D8B1D#9D8B1D

#9D8B1D is a light, vivid yellow. Relative luminance 0.257; OKLCH L 63.4% C 0.123 H 99.2°. Best body text is #000000 at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#9D8B1D
RGBrgb(157, 139, 29)
HSLhsl(52, 69%, 36%)
HSVhsv(52, 82%, 62%)
CMYKcmyk(0%, 11.5%, 81.5%, 38.4%)
CIE-LABlab(57.77, -4.79, 56.07)
CIE-LCHlch(57.77, 56.28, 94.89°)
OKLaboklab(63.44% -0.0197 0.1213)
OKLCHoklch(63.44% 0.123 99.2)
XYZxyz(23.3602, 25.7232, 4.8968)
Luminance0.2572 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8B1D #1D2F9D
analogous
#9D4B1D #9D8B1D #6F9D1D
triadic
#9D8B1D #1D9D8B #8B1D9D
tetradic
#9D8B1D #1D9D4B #1D2F9D #9D1D6F
square
#9D8B1D #1D9D4B #1D2F9D #9D1D6F
split-complementary
#9D8B1D #1D6F9D #4B1D9D
monochromatic
#36300A #695D13 #9D8B1D #D1B927 #E0CC55

Accessibility & contrast

On white

3.42
#9D8B1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.14
#9D8B1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8B1D
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8B1D#FFFFFF#000000##000000
##9D8B1D1.003.426.146.14
#FFFFFF3.421.0021.0021.00
#0000006.1421.001.001.00
##0000006.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#998700
Deuteranopia (green-blind)
#9E8E26
Tritanopia (blue-blind)
#AA8077
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9d8b1d;
/* rgb */ color: rgb(157, 139, 29);
/* oklch */ color: oklch(63.4% 0.123 99.2);
Tailwind
colors: {
  custom: {
    50: '#beac64',
    500: '#9d8b1d',
    950: '#000000',
  },
}
SCSS
$custom: #9d8b1d;
$custom-light: #beac64;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8b1d",
  "rgb": {
    "r": 157,
    "g": 139,
    "b": 29
  },
  "hsl": {
    "h": 51.563,
    "s": 68.817,
    "l": 36.471
  },
  "oklch": {
    "l": 0.63437,
    "c": 0.12287,
    "h": 99.2
  },
  "luminance": 0.25722
}

Semantic roles & 50–950 ramp

primary
#9D8B1D
secondary
#5363C3
accent
#55EC3C
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9D8B1D

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

Preview Lab → · Contrast checker → · Palette generator →

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