#AAB31F#AAB31F

#AAB31F is a light, vivid yellow. Relative luminance 0.409; OKLCH L 73.5% C 0.157 H 113.4°. Best body text is #000000 at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#AAB31F
RGBrgb(170, 179, 31)
HSLhsl(64, 70%, 41%)
HSVhsv(64, 83%, 70%)
CMYKcmyk(5%, 0%, 82.7%, 29.8%)
CIE-LABlab(70.10, -19.87, 66.63)
CIE-LCHlch(70.10, 69.53, 106.61°)
OKLaboklab(73.54% -0.0622 0.1439)
OKLCHoklch(73.54% 0.157 113.4)
XYZxyz(32.9461, 40.8859, 7.4523)
Luminance0.4088 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AAB31F #281FB3
analogous
#B3721F #AAB31F #60B31F
triadic
#AAB31F #1FAAB3 #B31FAA
tetradic
#AAB31F #1FB372 #281FB3 #B31F60
square
#AAB31F #1FB372 #281FB3 #B31F60
split-complementary
#AAB31F #1F60B3 #721FB3
monochromatic
#474B0D #787F16 #AAB31F #D2DC33 #DDE568

Accessibility & contrast

On white

2.29
#AAB31F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.18
#AAB31F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AAB31F
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AAB31F#FFFFFF#000000##000000
##AAB31F1.002.299.189.18
#FFFFFF2.291.0021.0021.00
#0000009.1821.001.001.00
##0000009.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AA00
Deuteranopia (green-blind)
#C1AD2F
Tritanopia (blue-blind)
#B6A899
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #aab31f;
/* rgb */ color: rgb(170, 179, 31);
/* oklch */ color: oklch(73.5% 0.157 113.4);
Tailwind
colors: {
  custom: {
    50: '#c7c96b',
    500: '#aab31f',
    950: '#000000',
  },
}
SCSS
$custom: #aab31f;
$custom-light: #c7c96b;
$custom-dark: #000000;
JSON
{
  "hex": "#aab31f",
  "rgb": {
    "r": 170,
    "g": 179,
    "b": 31
  },
  "hsl": {
    "h": 63.649,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.73541,
    "c": 0.15674,
    "h": 113.4
  },
  "luminance": 0.40885
}

Semantic roles & 50–950 ramp

primary
#AAB31F
secondary
#6A64CA
accent
#3BED45
background
#FCFCF6
surface
#F9F8EC
border
#D2D1C7
text
#141307
muted
#82827A

Preview Lab

Preview with #AAB31F

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

Preview Lab → · Contrast checker → · Palette generator →

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