#9D981C#9D981C

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

Color values

HEX#9D981C
RGBrgb(157, 152, 28)
HSLhsl(58, 70%, 36%)
HSVhsv(58, 82%, 62%)
CMYKcmyk(0%, 3.2%, 82.2%, 38.4%)
CIE-LABlab(61.40, -11.81, 59.53)
CIE-LCHlch(61.40, 60.69, 101.22°)
OKLaboklab(66.32% -0.0395 0.1286)
OKLCHoklch(66.32% 0.134 107.1)
XYZxyz(25.3435, 29.7093, 5.4979)
Luminance0.2971 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D981C #1C219D
analogous
#9D581C #9D981C #629D1C
triadic
#9D981C #1C9D98 #981C9D
tetradic
#9D981C #1C9D58 #1C219D #9D1C62
square
#9D981C #1C9D58 #1C219D #9D1C62
split-complementary
#9D981C #1C629D #581C9D
monochromatic
#353309 #696613 #9D981C #D1CA25 #E0DB53

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D981C#FFFFFF#000000##000000
##9D981C1.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)
#A89627
Tritanopia (blue-blind)
#A98D82
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #9d981c;
/* rgb */ color: rgb(157, 152, 28);
/* oklch */ color: oklch(66.3% 0.134 107.1);
Tailwind
colors: {
  custom: {
    50: '#beb665',
    500: '#9d981c',
    950: '#000000',
  },
}
SCSS
$custom: #9d981c;
$custom-light: #beb665;
$custom-dark: #000000;
JSON
{
  "hex": "#9d981c",
  "rgb": {
    "r": 157,
    "g": 152,
    "b": 28
  },
  "hsl": {
    "h": 57.674,
    "s": 69.73,
    "l": 36.275
  },
  "oklch": {
    "l": 0.66322,
    "c": 0.13448,
    "h": 107.1
  },
  "luminance": 0.29708
}

Semantic roles & 50–950 ramp

primary
#9D981C
secondary
#5156C3
accent
#42ED3B
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131106
muted
#82807A

Preview Lab

Preview with #9D981C

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

Preview Lab → · Contrast checker → · Palette generator →

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