#9AAA31#9AAA31

#9AAA31 is a light, vivid yellow. Relative luminance 0.358; OKLCH L 70.3% C 0.143 H 116.8°. Best body text is #000000 at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#9AAA31
RGBrgb(154, 170, 49)
HSLhsl(68, 55%, 43%)
HSVhsv(68, 71%, 67%)
CMYKcmyk(9.4%, 0%, 71.2%, 33.3%)
CIE-LABlab(66.40, -21.46, 57.15)
CIE-LCHlch(66.40, 61.04, 110.58°)
OKLaboklab(70.3% -0.0643 0.1274)
OKLCHoklch(70.3% 0.143 116.8)
XYZxyz(28.2562, 35.8416, 8.3347)
Luminance0.3584 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9AAA31 #4131AA
analogous
#AA7D31 #9AAA31 #5DAA31
triadic
#9AAA31 #319AAA #AA319A
tetradic
#9AAA31 #31AA7D #4131AA #AA315D
square
#9AAA31 #31AA7D #4131AA #AA315D
split-complementary
#9AAA31 #315DAA #7D31AA
monochromatic
#444B16 #6F7A23 #9AAA31 #BBCC4D #CDD97C

Accessibility & contrast

On white

2.57
#9AAA31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.17
#9AAA31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9AAA31
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9AAA31#FFFFFF#000000##000000
##9AAA311.002.578.178.17
#FFFFFF2.571.0021.0021.00
#0000008.1721.001.001.00
##0000008.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A11C
Deuteranopia (green-blind)
#B4A23B
Tritanopia (blue-blind)
#A4A092
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #9aaa31;
/* rgb */ color: rgb(154, 170, 49);
/* oklch */ color: oklch(70.3% 0.143 116.8);
Tailwind
colors: {
  custom: {
    50: '#bbc371',
    500: '#9aaa31',
    950: '#000000',
  },
}
SCSS
$custom: #9aaa31;
$custom-light: #bbc371;
$custom-dark: #000000;
JSON
{
  "hex": "#9aaa31",
  "rgb": {
    "r": 154,
    "g": 170,
    "b": 49
  },
  "hsl": {
    "h": 67.934,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.70298,
    "c": 0.14274,
    "h": 116.8
  },
  "luminance": 0.35841
}

Semantic roles & 50–950 ramp

primary
#9AAA31
secondary
#7F75C2
accent
#49DF5D
background
#FBFBF7
surface
#F7F7ED
border
#D0D0C8
text
#121208
muted
#81817B

Preview Lab

Preview with #9AAA31

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

Preview Lab → · Contrast checker → · Palette generator →

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