#AAB228#AAB228

#AAB228 is a light, vivid yellow. Relative luminance 0.405; OKLCH L 73.4% C 0.152 H 113.0°. Best body text is #000000 at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#AAB228
RGBrgb(170, 178, 40)
HSLhsl(63, 63%, 43%)
HSVhsv(63, 78%, 70%)
CMYKcmyk(4.5%, 0%, 77.5%, 30.2%)
CIE-LABlab(69.85, -19.05, 63.91)
CIE-LCHlch(69.85, 66.69, 106.60°)
OKLaboklab(73.36% -0.0593 0.1396)
OKLCHoklch(73.36% 0.152 113)
XYZxyz(32.8820, 40.5408, 8.1001)
Luminance0.4054 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AAB228 #3028B2
analogous
#B27528 #AAB228 #65B228
triadic
#AAB228 #28AAB2 #B228AA
tetradic
#AAB228 #28B275 #3028B2 #B22865
square
#AAB228 #28B275 #3028B2 #B22865
split-complementary
#AAB228 #2865B2 #7528B2
monochromatic
#4B4E12 #7A801D #AAB228 #CCD543 #DAE075

Accessibility & contrast

On white

2.31
#AAB228 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.11
#AAB228 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AAB228
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AAB228#FFFFFF#000000##000000
##AAB2281.002.319.119.11
#FFFFFF2.311.0021.0021.00
#0000009.1121.001.001.00
##0000009.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0A900
Deuteranopia (green-blind)
#C0AC34
Tritanopia (blue-blind)
#B6A798
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #aab228;
/* rgb */ color: rgb(170, 178, 40);
/* oklch */ color: oklch(73.4% 0.152 113.0);
Tailwind
colors: {
  custom: {
    50: '#c7c86e',
    500: '#aab228',
    950: '#000000',
  },
}
SCSS
$custom: #aab228;
$custom-light: #c7c86e;
$custom-dark: #000000;
JSON
{
  "hex": "#aab228",
  "rgb": {
    "r": 170,
    "g": 178,
    "b": 40
  },
  "hsl": {
    "h": 63.478,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.73359,
    "c": 0.15169,
    "h": 113
  },
  "luminance": 0.4054
}

Semantic roles & 50–950 ramp

primary
#AAB228
secondary
#746FC7
accent
#41E64B
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AAB228

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

Preview Lab → · Contrast checker → · Palette generator →

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