#AAAB31#AAAB31

#AAAB31 is a light, vivid yellow. Relative luminance 0.379; OKLCH L 71.8% C 0.139 H 109.9°. Best body text is #000000 at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#AAAB31
RGBrgb(170, 171, 49)
HSLhsl(60, 55%, 43%)
HSVhsv(60, 71%, 67%)
CMYKcmyk(0.6%, 0%, 71.3%, 32.9%)
CIE-LABlab(67.94, -15.09, 59.08)
CIE-LCHlch(67.94, 60.98, 104.33°)
OKLaboklab(71.85% -0.0475 0.131)
OKLCHoklch(71.85% 0.139 109.9)
XYZxyz(31.6960, 37.8945, 8.5499)
Luminance0.3789 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AAAB31 #3231AB
analogous
#AB6F31 #AAAB31 #6DAB31
triadic
#AAAB31 #31AAAB #AB31AA
tetradic
#AAAB31 #31AB6F #3231AB #AB316D
square
#AAAB31 #31AB6F #3231AB #AB316D
split-complementary
#AAAB31 #316DAB #6F31AB
monochromatic
#4B4C16 #7B7B23 #AAAB31 #CBCC4D #D9DA7D

Accessibility & contrast

On white

2.45
#AAAB31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.58
#AAAB31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AAAB31
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AAAB31#FFFFFF#000000##000000
##AAAB311.002.458.588.58
#FFFFFF2.451.0021.0021.00
#0000008.5821.001.001.00
##0000008.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A41B
Deuteranopia (green-blind)
#BAA73A
Tritanopia (blue-blind)
#B6A093
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #aaab31;
/* rgb */ color: rgb(170, 171, 49);
/* oklch */ color: oklch(71.8% 0.139 109.9);
Tailwind
colors: {
  custom: {
    50: '#c7c372',
    500: '#aaab31',
    950: '#000000',
  },
}
SCSS
$custom: #aaab31;
$custom-light: #c7c372;
$custom-dark: #000000;
JSON
{
  "hex": "#aaab31",
  "rgb": {
    "r": 170,
    "g": 171,
    "b": 49
  },
  "hsl": {
    "h": 60.492,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.71846,
    "c": 0.13935,
    "h": 109.9
  },
  "luminance": 0.37894
}

Semantic roles & 50–950 ramp

primary
#AAAB31
secondary
#7675C2
accent
#49DF4A
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#131208
muted
#82817B

Preview Lab

Preview with #AAAB31

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

Preview Lab → · Contrast checker → · Palette generator →

#AAAB31 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva