#AAB31B#AAB31B

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

Color values

HEX#AAB31B
RGBrgb(170, 179, 27)
HSLhsl(64, 74%, 40%)
HSVhsv(64, 85%, 70%)
CMYKcmyk(5%, 0%, 84.9%, 29.8%)
CIE-LABlab(70.08, -19.99, 67.57)
CIE-LCHlch(70.08, 70.47, 106.48°)
OKLaboklab(73.53% -0.0628 0.1452)
OKLCHoklch(73.53% 0.158 113.4)
XYZxyz(32.8966, 40.8661, 7.1917)
Luminance0.4087 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AAB31B #241BB3
analogous
#B3701B #AAB31B #5EB31B
triadic
#AAB31B #1BAAB3 #B31BAA
tetradic
#AAB31B #1BB370 #241BB3 #B31B5E
square
#AAB31B #1BB370 #241BB3 #B31B5E
split-complementary
#AAB31B #1B5EB3 #701BB3
monochromatic
#45490B #777E13 #AAB31B #D5DF2C #DFE761

Accessibility & contrast

On white

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

On black

9.17
#AAB31B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AAB31B
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AAB31B#FFFFFF#000000##000000
##AAB31B1.002.299.179.17
#FFFFFF2.291.0021.0021.00
#0000009.1721.001.001.00
##0000009.1721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #aab31b;
/* rgb */ color: rgb(170, 179, 27);
/* oklch */ color: oklch(73.5% 0.158 113.4);
Tailwind
colors: {
  custom: {
    50: '#c7c969',
    500: '#aab31b',
    950: '#000000',
  },
}
SCSS
$custom: #aab31b;
$custom-light: #c7c969;
$custom-dark: #000000;
JSON
{
  "hex": "#aab31b",
  "rgb": {
    "r": 170,
    "g": 179,
    "b": 27
  },
  "hsl": {
    "h": 63.553,
    "s": 73.786,
    "l": 40.392
  },
  "oklch": {
    "l": 0.73526,
    "c": 0.15823,
    "h": 113.4
  },
  "luminance": 0.40865
}

Semantic roles & 50–950 ramp

primary
#AAB31B
secondary
#655ECC
accent
#37F042
background
#FCFCF6
surface
#F9F8EC
border
#D2D1C7
text
#141307
muted
#82827A

Preview Lab

Preview with #AAB31B

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

Preview Lab → · Contrast checker → · Palette generator →

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