#9D8A1E#9D8A1E

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

Color values

HEX#9D8A1E
RGBrgb(157, 138, 30)
HSLhsl(51, 68%, 37%)
HSVhsv(51, 81%, 62%)
CMYKcmyk(0%, 12.1%, 80.9%, 38.4%)
CIE-LABlab(57.50, -4.21, 55.52)
CIE-LCHlch(57.50, 55.68, 94.34°)
OKLaboklab(63.22% -0.018 0.1203)
OKLCHoklch(63.22% 0.122 98.5)
XYZxyz(23.2287, 25.4400, 4.9149)
Luminance0.2544 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8A1E #1E319D
analogous
#9D4B1E #9D8A1E #719D1E
triadic
#9D8A1E #1E9D8A #8A1E9D
tetradic
#9D8A1E #1E9D4B #1E319D #9D1E71
square
#9D8A1E #1E9D4B #1E319D #9D1E71
split-complementary
#9D8A1E #1E719D #4B1E9D
monochromatic
#36300A #6A5D14 #9D8A1E #D0B728 #DFCA57

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D8A1E#FFFFFF#000000##000000
##9D8A1E1.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)
#988600
Deuteranopia (green-blind)
#9E8D26
Tritanopia (blue-blind)
#AA7F76
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9d8a1e;
/* rgb */ color: rgb(157, 138, 30);
/* oklch */ color: oklch(63.2% 0.122 98.5);
Tailwind
colors: {
  custom: {
    50: '#beab64',
    500: '#9d8a1e',
    950: '#000000',
  },
}
SCSS
$custom: #9d8a1e;
$custom-light: #beab64;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8a1e",
  "rgb": {
    "r": 157,
    "g": 138,
    "b": 30
  },
  "hsl": {
    "h": 51.024,
    "s": 67.914,
    "l": 36.667
  },
  "oklch": {
    "l": 0.63223,
    "c": 0.12163,
    "h": 98.5
  },
  "luminance": 0.25439
}

Semantic roles & 50–950 ramp

primary
#9D8A1E
secondary
#5465C2
accent
#57EB3D
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9D8A1E

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

Preview Lab → · Contrast checker → · Palette generator →

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