#AAAF31#AAAF31

#AAAF31 is a light, vivid yellow. Relative luminance 0.394; OKLCH L 72.7% C 0.144 H 111.7°. Best body text is #000000 at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#AAAF31
RGBrgb(170, 175, 49)
HSLhsl(62, 56%, 44%)
HSVhsv(62, 72%, 69%)
CMYKcmyk(2.9%, 0%, 72%, 31.4%)
CIE-LABlab(69.06, -17.14, 60.17)
CIE-LCHlch(69.06, 62.56, 105.90°)
OKLaboklab(72.74% -0.0532 0.1333)
OKLCHoklch(72.74% 0.144 111.7)
XYZxyz(32.4630, 39.4285, 8.8055)
Luminance0.3943 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AAAF31 #3631AF
analogous
#AF7531 #AAAF31 #6BAF31
triadic
#AAAF31 #31AAAF #AF31AA
tetradic
#AAAF31 #31AF75 #3631AF #AF316B
square
#AAAF31 #31AF75 #3631AF #AF316B
split-complementary
#AAAF31 #316BAF #7531AF
monochromatic
#4D4F16 #7C7F24 #AAAF31 #C9CE4F #D8DB7F

Accessibility & contrast

On white

2.36
#AAAF31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.89
#AAAF31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AAAF31
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AAAF31#FFFFFF#000000##000000
##AAAF311.002.368.898.89
#FFFFFF2.361.0021.0021.00
#0000008.8921.001.001.00
##0000008.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA71A
Deuteranopia (green-blind)
#BDAA3B
Tritanopia (blue-blind)
#B6A497
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #aaaf31;
/* rgb */ color: rgb(170, 175, 49);
/* oklch */ color: oklch(72.7% 0.144 111.7);
Tailwind
colors: {
  custom: {
    50: '#c7c672',
    500: '#aaaf31',
    950: '#000000',
  },
}
SCSS
$custom: #aaaf31;
$custom-light: #c7c672;
$custom-dark: #000000;
JSON
{
  "hex": "#aaaf31",
  "rgb": {
    "r": 170,
    "g": 175,
    "b": 49
  },
  "hsl": {
    "h": 62.381,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.7274,
    "c": 0.14352,
    "h": 111.7
  },
  "luminance": 0.39428
}

Semantic roles & 50–950 ramp

primary
#AAAF31
secondary
#7B78C4
accent
#48E04E
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #AAAF31

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

Preview Lab → · Contrast checker → · Palette generator →

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