#9E981A#9E981A

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

Color values

HEX#9E981A
RGBrgb(158, 152, 26)
HSLhsl(57, 72%, 36%)
HSVhsv(57, 84%, 62%)
CMYKcmyk(0%, 3.8%, 83.5%, 38%)
CIE-LABlab(61.48, -11.43, 60.18)
CIE-LCHlch(61.48, 61.25, 100.75°)
OKLaboklab(66.4% -0.0386 0.1295)
OKLCHoklch(66.4% 0.135 106.6)
XYZxyz(25.5164, 29.8011, 5.3852)
Luminance0.2980 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E981A #1A209E
analogous
#9E561A #9E981A #629E1A
triadic
#9E981A #1A9E98 #981A9E
tetradic
#9E981A #1A9E56 #1A209E #9E1A62
square
#9E981A #1A9E56 #1A209E #9E1A62
split-complementary
#9E981A #1A629E #561A9E
monochromatic
#353309 #696511 #9E981A #D3CB23 #E2DC50

Accessibility & contrast

On white

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

On black

6.96
#9E981A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E981A
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E981A#FFFFFF#000000##000000
##9E981A1.003.026.966.96
#FFFFFF3.021.0021.0021.00
#0000006.9621.001.001.00
##0000006.9621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9e981a;
/* rgb */ color: rgb(158, 152, 26);
/* oklch */ color: oklch(66.4% 0.135 106.6);
Tailwind
colors: {
  custom: {
    50: '#bfb665',
    500: '#9e981a',
    950: '#000000',
  },
}
SCSS
$custom: #9e981a;
$custom-light: #bfb665;
$custom-dark: #000000;
JSON
{
  "hex": "#9e981a",
  "rgb": {
    "r": 158,
    "g": 152,
    "b": 26
  },
  "hsl": {
    "h": 57.273,
    "s": 71.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.66404,
    "c": 0.13516,
    "h": 106.6
  },
  "luminance": 0.298
}

Semantic roles & 50–950 ramp

primary
#9E981A
secondary
#4F54C5
accent
#42EE39
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131106
muted
#82807A

Preview Lab

Preview with #9E981A

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

Preview Lab → · Contrast checker → · Palette generator →

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