#9D8D1F#9D8D1F

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

Color values

HEX#9D8D1F
RGBrgb(157, 141, 31)
HSLhsl(52, 67%, 37%)
HSVhsv(52, 80%, 62%)
CMYKcmyk(0%, 10.2%, 80.3%, 38.4%)
CIE-LABlab(58.34, -5.81, 55.94)
CIE-LCHlch(58.34, 56.24, 95.93°)
OKLaboklab(63.89% -0.0224 0.1214)
OKLCHoklch(63.89% 0.123 100.5)
XYZxyz(23.6780, 26.3179, 5.1287)
Luminance0.2632 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8D1F #1F2F9D
analogous
#9D4E1F #9D8D1F #6E9D1F
triadic
#9D8D1F #1F9D8D #8D1F9D
tetradic
#9D8D1F #1F9D4E #1F2F9D #9D1F6E
square
#9D8D1F #1F9D4E #1F2F9D #9D1F6E
split-complementary
#9D8D1F #1F6E9D #4E1F9D
monochromatic
#37310B #6A5F15 #9D8D1F #D0BB29 #DECD58

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D8D1F#FFFFFF#000000##000000
##9D8D1F1.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)
#9B8901
Deuteranopia (green-blind)
#A08F27
Tritanopia (blue-blind)
#AA8279
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #9d8d1f;
/* rgb */ color: rgb(157, 141, 31);
/* oklch */ color: oklch(63.9% 0.123 100.5);
Tailwind
colors: {
  custom: {
    50: '#beae65',
    500: '#9d8d1f',
    950: '#000000',
  },
}
SCSS
$custom: #9d8d1f;
$custom-light: #beae65;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8d1f",
  "rgb": {
    "r": 157,
    "g": 141,
    "b": 31
  },
  "hsl": {
    "h": 52.381,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.63888,
    "c": 0.12346,
    "h": 100.5
  },
  "luminance": 0.26317
}

Semantic roles & 50–950 ramp

primary
#9D8D1F
secondary
#5664C2
accent
#54EA3E
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9D8D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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