#9D981F#9D981F

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

Color values

HEX#9D981F
RGBrgb(157, 152, 31)
HSLhsl(58, 67%, 37%)
HSVhsv(58, 80%, 62%)
CMYKcmyk(0%, 3.2%, 80.3%, 38.4%)
CIE-LABlab(61.42, -11.71, 58.67)
CIE-LCHlch(61.42, 59.83, 101.29°)
OKLaboklab(66.34% -0.0389 0.1273)
OKLCHoklch(66.34% 0.133 107)
XYZxyz(25.3813, 29.7244, 5.6965)
Luminance0.2972 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D981F #1F249D
analogous
#9D591F #9D981F #639D1F
triadic
#9D981F #1F9D98 #981F9D
tetradic
#9D981F #1F9D59 #1F249D #9D1F63
square
#9D981F #1F9D59 #1F249D #9D1F63
split-complementary
#9D981F #1F639D #591F9D
monochromatic
#37350B #6A6715 #9D981F #D0C929 #DED958

Accessibility & contrast

On white

3.02
#9D981F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D981F#FFFFFF#000000##000000
##9D981F1.003.026.946.94
#FFFFFF3.021.0021.0021.00
#0000006.9421.001.001.00
##0000006.9421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9d981f;
/* rgb */ color: rgb(157, 152, 31);
/* oklch */ color: oklch(66.3% 0.133 107.0);
Tailwind
colors: {
  custom: {
    50: '#beb667',
    500: '#9d981f',
    950: '#000000',
  },
}
SCSS
$custom: #9d981f;
$custom-light: #beb667;
$custom-dark: #000000;
JSON
{
  "hex": "#9d981f",
  "rgb": {
    "r": 157,
    "g": 152,
    "b": 31
  },
  "hsl": {
    "h": 57.619,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.66337,
    "c": 0.13311,
    "h": 107
  },
  "luminance": 0.29724
}

Semantic roles & 50–950 ramp

primary
#9D981F
secondary
#565AC2
accent
#45EA3E
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131106
muted
#82807A

Preview Lab

Preview with #9D981F

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

Preview Lab → · Contrast checker → · Palette generator →

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