#9D8B1E#9D8B1E

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

Color values

HEX#9D8B1E
RGBrgb(157, 139, 30)
HSLhsl(51, 68%, 37%)
HSVhsv(51, 81%, 62%)
CMYKcmyk(0%, 11.5%, 80.9%, 38.4%)
CIE-LABlab(57.78, -4.76, 55.76)
CIE-LCHlch(57.78, 55.96, 94.88°)
OKLaboklab(63.44% -0.0195 0.1208)
OKLCHoklch(63.44% 0.122 99.2)
XYZxyz(23.3728, 25.7283, 4.9630)
Luminance0.2573 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8B1E #1E309D
analogous
#9D4C1E #9D8B1E #709D1E
triadic
#9D8B1E #1E9D8B #8B1E9D
tetradic
#9D8B1E #1E9D4C #1E309D #9D1E70
square
#9D8B1E #1E9D4C #1E309D #9D1E70
split-complementary
#9D8B1E #1E709D #4C1E9D
monochromatic
#36300A #6A5E14 #9D8B1E #D0B828 #DFCC57

Accessibility & contrast

On white

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

On black

6.15
#9D8B1E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8B1E
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8B1E#FFFFFF#000000##000000
##9D8B1E1.003.426.156.15
#FFFFFF3.421.0021.0021.00
#0000006.1521.001.001.00
##0000006.1521.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: #9d8b1e;
/* rgb */ color: rgb(157, 139, 30);
/* oklch */ color: oklch(63.4% 0.122 99.2);
Tailwind
colors: {
  custom: {
    50: '#beac64',
    500: '#9d8b1e',
    950: '#000000',
  },
}
SCSS
$custom: #9d8b1e;
$custom-light: #beac64;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8b1e",
  "rgb": {
    "r": 157,
    "g": 139,
    "b": 30
  },
  "hsl": {
    "h": 51.496,
    "s": 67.914,
    "l": 36.667
  },
  "oklch": {
    "l": 0.63442,
    "c": 0.12239,
    "h": 99.2
  },
  "luminance": 0.25727
}

Semantic roles & 50–950 ramp

primary
#9D8B1E
secondary
#5464C2
accent
#56EB3D
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9D8B1E

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

Preview Lab → · Contrast checker → · Palette generator →

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