#AAB942#AAB942

#AAB942 is a light, vivid yellow. Relative luminance 0.436; OKLCH L 75.1% C 0.143 H 116.1°. Best body text is #000000 at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#AAB942
RGBrgb(170, 185, 66)
HSLhsl(68, 47%, 49%)
HSVhsv(68, 64%, 73%)
CMYKcmyk(8.1%, 0%, 64.3%, 27.5%)
CIE-LABlab(71.99, -21.17, 56.52)
CIE-LCHlch(71.99, 60.35, 110.54°)
OKLaboklab(75.12% -0.0628 0.1284)
OKLCHoklch(75.12% 0.143 116.1)
XYZxyz(34.9107, 43.6378, 11.7371)
Luminance0.4364 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AAB942 #5142B9
analogous
#B98D42 #AAB942 #6FB942
triadic
#AAB942 #42AAB9 #B942AA
tetradic
#AAB942 #42B98D #5142B9 #B9426F
square
#AAB942 #42B98D #5142B9 #B9426F
split-complementary
#AAB942 #426FB9 #8D42B9
monochromatic
#575F22 #818C32 #AAB942 #BFCB6D #D3DB9A

Accessibility & contrast

On white

2.16
#AAB942 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.73
#AAB942 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AAB942
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AAB942#FFFFFF#000000##000000
##AAB9421.002.169.739.73
#FFFFFF2.161.0021.0021.00
#0000009.7321.001.001.00
##0000009.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5B032
Deuteranopia (green-blind)
#C4B14A
Tritanopia (blue-blind)
#B4AFA0
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #aab942;
/* rgb */ color: rgb(170, 185, 66);
/* oklch */ color: oklch(75.1% 0.143 116.1);
Tailwind
colors: {
  custom: {
    50: '#c6cd7c',
    500: '#aab942',
    950: '#000000',
  },
}
SCSS
$custom: #aab942;
$custom-light: #c6cd7c;
$custom-dark: #000000;
JSON
{
  "hex": "#aab942",
  "rgb": {
    "r": 170,
    "g": 185,
    "b": 66
  },
  "hsl": {
    "h": 67.563,
    "s": 47.41,
    "l": 49.216
  },
  "oklch": {
    "l": 0.75121,
    "c": 0.14288,
    "h": 116.1
  },
  "luminance": 0.43637
}

Semantic roles & 50–950 ramp

primary
#AAB942
secondary
#9790C7
accent
#51D762
background
#FCFCF7
surface
#F8F9EE
border
#D1D2C9
text
#13130A
muted
#82827C

Preview Lab

Preview with #AAB942

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

Preview Lab → · Contrast checker → · Palette generator →

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