#AAAF42#AAAF42

#AAAF42 is a light, vivid yellow. Relative luminance 0.396; OKLCH L 72.9% C 0.131 H 111.7°. Best body text is #000000 at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#AAAF42
RGBrgb(170, 175, 66)
HSLhsl(63, 45%, 47%)
HSVhsv(63, 62%, 69%)
CMYKcmyk(2.9%, 0%, 62.3%, 31.4%)
CIE-LABlab(69.18, -16.13, 53.54)
CIE-LCHlch(69.18, 55.92, 106.77°)
OKLaboklab(72.88% -0.0486 0.1221)
OKLCHoklch(72.88% 0.131 111.7)
XYZxyz(32.8918, 39.6001, 11.0641)
Luminance0.3960 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AAAF42 #4742AF
analogous
#AF7D42 #AAAF42 #74AF42
triadic
#AAAF42 #42AAAF #AF42AA
tetradic
#AAAF42 #42AF7D #4742AF #AF4274
square
#AAAF42 #42AF7D #4742AF #AF4274
split-complementary
#AAAF42 #4274AF #7D42AF
monochromatic
#545620 #7F8331 #AAAF42 #C2C668 #D4D795

Accessibility & contrast

On white

2.35
#AAAF42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.92
#AAAF42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AAAF42
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AAAF42#FFFFFF#000000##000000
##AAAF421.002.358.928.92
#FFFFFF2.351.0021.0021.00
#0000008.9221.001.001.00
##0000008.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA735
Deuteranopia (green-blind)
#BCAA49
Tritanopia (blue-blind)
#B5A598
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #aaaf42;
/* rgb */ color: rgb(170, 175, 66);
/* oklch */ color: oklch(72.9% 0.131 111.7);
Tailwind
colors: {
  custom: {
    50: '#c6c67b',
    500: '#aaaf42',
    950: '#000000',
  },
}
SCSS
$custom: #aaaf42;
$custom-light: #c6c67b;
$custom-dark: #000000;
JSON
{
  "hex": "#aaaf42",
  "rgb": {
    "r": 170,
    "g": 175,
    "b": 66
  },
  "hsl": {
    "h": 62.752,
    "s": 45.228,
    "l": 47.255
  },
  "oklch": {
    "l": 0.72878,
    "c": 0.1314,
    "h": 111.7
  },
  "luminance": 0.39599
}

Semantic roles & 50–950 ramp

primary
#AAAF42
secondary
#8D8AC2
accent
#53D559
background
#FCFCF7
surface
#F8F8EE
border
#D1D1C9
text
#13130A
muted
#82827C

Preview Lab

Preview with #AAAF42

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

Preview Lab → · Contrast checker → · Palette generator →

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