#9D981A#9D981A

#9D981A is a light, vivid yellow. Relative luminance 0.297; OKLCH L 66.3% C 0.135 H 107.1°. Best body text is #000000 at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#9D981A
RGBrgb(157, 152, 26)
HSLhsl(58, 72%, 36%)
HSVhsv(58, 83%, 62%)
CMYKcmyk(0%, 3.2%, 83.4%, 38.4%)
CIE-LABlab(61.39, -11.88, 60.07)
CIE-LCHlch(61.39, 61.23, 101.18°)
OKLaboklab(66.31% -0.0398 0.1293)
OKLCHoklch(66.31% 0.135 107.1)
XYZxyz(25.3204, 29.7001, 5.3760)
Luminance0.2970 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D981A #1A1F9D
analogous
#9D561A #9D981A #609D1A
triadic
#9D981A #1A9D98 #981A9D
tetradic
#9D981A #1A9D56 #1A1F9D #9D1A60
square
#9D981A #1A9D56 #1A1F9D #9D1A60
split-complementary
#9D981A #1A609D #561A9D
monochromatic
#343209 #686511 #9D981A #D2CB23 #E2DC4F

Accessibility & contrast

On white

3.03
#9D981A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.94
#9D981A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D981A
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D981A#FFFFFF#000000##000000
##9D981A1.003.036.946.94
#FFFFFF3.031.0021.0021.00
#0000006.9421.001.001.00
##0000006.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#A69200
Deuteranopia (green-blind)
#A89626
Tritanopia (blue-blind)
#A98D82
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #9d981a;
/* rgb */ color: rgb(157, 152, 26);
/* oklch */ color: oklch(66.3% 0.135 107.1);
Tailwind
colors: {
  custom: {
    50: '#beb665',
    500: '#9d981a',
    950: '#000000',
  },
}
SCSS
$custom: #9d981a;
$custom-light: #beb665;
$custom-dark: #000000;
JSON
{
  "hex": "#9d981a",
  "rgb": {
    "r": 157,
    "g": 152,
    "b": 26
  },
  "hsl": {
    "h": 57.71,
    "s": 71.585,
    "l": 35.882
  },
  "oklch": {
    "l": 0.66313,
    "c": 0.13532,
    "h": 107.1
  },
  "luminance": 0.29699
}

Semantic roles & 50–950 ramp

primary
#9D981A
secondary
#4E53C4
accent
#40EE39
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131106
muted
#82807A

Preview Lab

Preview with #9D981A

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

Preview Lab → · Contrast checker → · Palette generator →

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