#9E981F#9E981F

#9E981F is a light, vivid yellow. Relative luminance 0.298; OKLCH L 66.4% C 0.133 H 106.5°. Best body text is #000000 at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#9E981F
RGBrgb(158, 152, 31)
HSLhsl(57, 67%, 37%)
HSVhsv(57, 80%, 62%)
CMYKcmyk(0%, 3.8%, 80.4%, 38%)
CIE-LABlab(61.50, -11.26, 58.78)
CIE-LCHlch(61.50, 59.85, 100.84°)
OKLaboklab(66.43% -0.0377 0.1275)
OKLCHoklch(66.43% 0.133 106.5)
XYZxyz(25.5772, 29.8255, 5.7057)
Luminance0.2983 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E981F #1F259E
analogous
#9E581F #9E981F #659E1F
triadic
#9E981F #1F9E98 #981F9E
tetradic
#9E981F #1F9E58 #1F259E #9E1F65
square
#9E981F #1F9E58 #1F259E #9E1F65
split-complementary
#9E981F #1F659E #581F9E
monochromatic
#38360B #6B6715 #9E981F #D1C929 #DED859

Accessibility & contrast

On white

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

On black

6.97
#9E981F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E981F
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E981F#FFFFFF#000000##000000
##9E981F1.003.026.976.97
#FFFFFF3.021.0021.0021.00
#0000006.9721.001.001.00
##0000006.9721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9e981f;
/* rgb */ color: rgb(158, 152, 31);
/* oklch */ color: oklch(66.4% 0.133 106.5);
Tailwind
colors: {
  custom: {
    50: '#beb667',
    500: '#9e981f',
    950: '#000000',
  },
}
SCSS
$custom: #9e981f;
$custom-light: #beb667;
$custom-dark: #000000;
JSON
{
  "hex": "#9e981f",
  "rgb": {
    "r": 158,
    "g": 152,
    "b": 31
  },
  "hsl": {
    "h": 57.165,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.66428,
    "c": 0.13295,
    "h": 106.5
  },
  "luminance": 0.29825
}

Semantic roles & 50–950 ramp

primary
#9E981F
secondary
#565CC2
accent
#46EA3E
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131106
muted
#82807A

Preview Lab

Preview with #9E981F

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

Preview Lab → · Contrast checker → · Palette generator →

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