#AAAF40#AAAF40

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

Color values

HEX#AAAF40
RGBrgb(170, 175, 64)
HSLhsl(63, 46%, 47%)
HSVhsv(63, 63%, 69%)
CMYKcmyk(2.9%, 0%, 63.4%, 31.4%)
CIE-LABlab(69.17, -16.27, 54.38)
CIE-LCHlch(69.17, 56.76, 106.66°)
OKLaboklab(72.86% -0.0492 0.1236)
OKLCHoklch(72.86% 0.133 111.7)
XYZxyz(32.8339, 39.5769, 10.7590)
Luminance0.3958 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AAAF40 #4540AF
analogous
#AF7D40 #AAAF40 #73AF40
triadic
#AAAF40 #40AAAF #AF40AA
tetradic
#AAAF40 #40AF7D #4540AF #AF4073
square
#AAAF40 #40AF7D #4540AF #AF4073
split-complementary
#AAAF40 #4073AF #7D40AF
monochromatic
#53551F #7E8230 #AAAF40 #C2C765 #D4D792

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AAAF40#FFFFFF#000000##000000
##AAAF401.002.368.928.92
#FFFFFF2.361.0021.0021.00
#0000008.9221.001.001.00
##0000008.9221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #aaaf40;
/* rgb */ color: rgb(170, 175, 64);
/* oklch */ color: oklch(72.9% 0.133 111.7);
Tailwind
colors: {
  custom: {
    50: '#c6c67a',
    500: '#aaaf40',
    950: '#000000',
  },
}
SCSS
$custom: #aaaf40;
$custom-light: #c6c67a;
$custom-dark: #000000;
JSON
{
  "hex": "#aaaf40",
  "rgb": {
    "r": 170,
    "g": 175,
    "b": 64
  },
  "hsl": {
    "h": 62.703,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.72859,
    "c": 0.133,
    "h": 111.7
  },
  "luminance": 0.39576
}

Semantic roles & 50–950 ramp

primary
#AAAF40
secondary
#8B88C3
accent
#52D658
background
#FCFCF7
surface
#F8F8EE
border
#D1D1C9
text
#13130A
muted
#82827C

Preview Lab

Preview with #AAAF40

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

Preview Lab → · Contrast checker → · Palette generator →

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