#9D981B#9D981B

#9D981B 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#9D981B
RGBrgb(157, 152, 27)
HSLhsl(58, 71%, 36%)
HSVhsv(58, 83%, 62%)
CMYKcmyk(0%, 3.2%, 82.8%, 38.4%)
CIE-LABlab(61.40, -11.84, 59.80)
CIE-LCHlch(61.40, 60.96, 101.20°)
OKLaboklab(66.32% -0.0396 0.129)
OKLCHoklch(66.32% 0.135 107.1)
XYZxyz(25.3318, 29.7046, 5.4359)
Luminance0.2970 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D981B #1B209D
analogous
#9D571B #9D981B #619D1B
triadic
#9D981B #1B9D98 #981B9D
tetradic
#9D981B #1B9D57 #1B209D #9D1B61
square
#9D981B #1B9D57 #1B209D #9D1B61
split-complementary
#9D981B #1B619D #571B9D
monochromatic
#353309 #696512 #9D981B #D1CB24 #E1DC51

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D981B#FFFFFF#000000##000000
##9D981B1.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: #9d981b;
/* rgb */ color: rgb(157, 152, 27);
/* oklch */ color: oklch(66.3% 0.135 107.1);
Tailwind
colors: {
  custom: {
    50: '#beb665',
    500: '#9d981b',
    950: '#000000',
  },
}
SCSS
$custom: #9d981b;
$custom-light: #beb665;
$custom-dark: #000000;
JSON
{
  "hex": "#9d981b",
  "rgb": {
    "r": 157,
    "g": 152,
    "b": 27
  },
  "hsl": {
    "h": 57.692,
    "s": 70.652,
    "l": 36.078
  },
  "oklch": {
    "l": 0.66318,
    "c": 0.13491,
    "h": 107.1
  },
  "luminance": 0.29704
}

Semantic roles & 50–950 ramp

primary
#9D981B
secondary
#5054C4
accent
#41ED3A
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131106
muted
#82807A

Preview Lab

Preview with #9D981B

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

Preview Lab → · Contrast checker → · Palette generator →

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