#9D8A1F#9D8A1F

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

Color values

HEX#9D8A1F
RGBrgb(157, 138, 31)
HSLhsl(51, 67%, 37%)
HSVhsv(51, 80%, 62%)
CMYKcmyk(0%, 12.1%, 80.3%, 38.4%)
CIE-LABlab(57.51, -4.17, 55.20)
CIE-LCHlch(57.51, 55.35, 94.32°)
OKLaboklab(63.23% -0.0178 0.1198)
OKLCHoklch(63.23% 0.121 98.5)
XYZxyz(23.2416, 25.4452, 4.9833)
Luminance0.2544 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8A1F #1F329D
analogous
#9D4B1F #9D8A1F #719D1F
triadic
#9D8A1F #1F9D8A #8A1F9D
tetradic
#9D8A1F #1F9D4B #1F329D #9D1F71
square
#9D8A1F #1F9D4B #1F329D #9D1F71
split-complementary
#9D8A1F #1F719D #4B1F9D
monochromatic
#37300B #6A5D15 #9D8A1F #D0B729 #DECA58

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D8A1F#FFFFFF#000000##000000
##9D8A1F1.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)
#988603
Deuteranopia (green-blind)
#9D8D27
Tritanopia (blue-blind)
#AA7F76
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9d8a1f;
/* rgb */ color: rgb(157, 138, 31);
/* oklch */ color: oklch(63.2% 0.121 98.5);
Tailwind
colors: {
  custom: {
    50: '#beab65',
    500: '#9d8a1f',
    950: '#000000',
  },
}
SCSS
$custom: #9d8a1f;
$custom-light: #beab65;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8a1f",
  "rgb": {
    "r": 157,
    "g": 138,
    "b": 31
  },
  "hsl": {
    "h": 50.952,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.63228,
    "c": 0.12113,
    "h": 98.5
  },
  "luminance": 0.25444
}

Semantic roles & 50–950 ramp

primary
#9D8A1F
secondary
#5666C2
accent
#58EA3E
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9D8A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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