#AAB240#AAB240

#AAB240 is a light, vivid yellow. Relative luminance 0.408; OKLCH L 73.5% C 0.136 H 113.1°. Best body text is #000000 at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#AAB240
RGBrgb(170, 178, 64)
HSLhsl(64, 47%, 47%)
HSVhsv(64, 64%, 70%)
CMYKcmyk(4.5%, 0%, 64%, 30.2%)
CIE-LABlab(70.01, -17.79, 55.26)
CIE-LCHlch(70.01, 58.06, 107.85°)
OKLaboklab(73.53% -0.0535 0.1254)
OKLCHoklch(73.53% 0.136 113.1)
XYZxyz(33.4243, 40.7577, 10.9558)
Luminance0.4076 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AAB240 #4840B2
analogous
#B28140 #AAB240 #71B240
triadic
#AAB240 #40AAB2 #B240AA
tetradic
#AAB240 #40B281 #4840B2 #B24071
square
#AAB240 #40B281 #4840B2 #B24071
split-complementary
#AAB240 #4071B2 #8140B2
monochromatic
#545820 #7F8530 #AAB240 #C1C867 #D4D894

Accessibility & contrast

On white

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

On black

9.15
#AAB240 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AAB240
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AAB240#FFFFFF#000000##000000
##AAB2401.002.299.159.15
#FFFFFF2.291.0021.0021.00
#0000009.1521.001.001.00
##0000009.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFAA31
Deuteranopia (green-blind)
#BFAC48
Tritanopia (blue-blind)
#B5A89A
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #aab240;
/* rgb */ color: rgb(170, 178, 64);
/* oklch */ color: oklch(73.5% 0.136 113.1);
Tailwind
colors: {
  custom: {
    50: '#c6c87a',
    500: '#aab240',
    950: '#000000',
  },
}
SCSS
$custom: #aab240;
$custom-light: #c6c87a;
$custom-dark: #000000;
JSON
{
  "hex": "#aab240",
  "rgb": {
    "r": 170,
    "g": 178,
    "b": 64
  },
  "hsl": {
    "h": 64.211,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.7353,
    "c": 0.13636,
    "h": 113.1
  },
  "luminance": 0.40757
}

Semantic roles & 50–950 ramp

primary
#AAB240
secondary
#8E8AC4
accent
#51D75A
background
#FCFCF7
surface
#F8F8EE
border
#D1D1C9
text
#13130A
muted
#82827C

Preview Lab

Preview with #AAB240

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

Preview Lab → · Contrast checker → · Palette generator →

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