#AAAF38#AAAF38

#AAAF38 is a light, vivid yellow. Relative luminance 0.395; OKLCH L 72.8% C 0.139 H 111.7°. Best body text is #000000 at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#AAAF38
RGBrgb(170, 175, 56)
HSLhsl(63, 52%, 45%)
HSVhsv(63, 68%, 69%)
CMYKcmyk(2.9%, 0%, 68%, 31.4%)
CIE-LABlab(69.11, -16.76, 57.58)
CIE-LCHlch(69.11, 59.97, 106.23°)
OKLaboklab(72.79% -0.0514 0.1291)
OKLCHoklch(72.79% 0.139 111.7)
XYZxyz(32.6223, 39.4923, 9.6449)
Luminance0.3949 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AAAF38 #3D38AF
analogous
#AF7838 #AAAF38 #6EAF38
triadic
#AAAF38 #38AAAF #AF38AA
tetradic
#AAAF38 #38AF78 #3D38AF #AF386E
square
#AAAF38 #38AF78 #3D38AF #AF386E
split-complementary
#AAAF38 #386EAF #7838AF
monochromatic
#50521A #7D8129 #AAAF38 #C5CA5A #D6D988

Accessibility & contrast

On white

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

On black

8.90
#AAAF38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AAAF38
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AAAF38#FFFFFF#000000##000000
##AAAF381.002.368.908.90
#FFFFFF2.361.0021.0021.00
#0000008.9021.001.001.00
##0000008.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA726
Deuteranopia (green-blind)
#BDAA40
Tritanopia (blue-blind)
#B5A497
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #aaaf38;
/* rgb */ color: rgb(170, 175, 56);
/* oklch */ color: oklch(72.8% 0.139 111.7);
Tailwind
colors: {
  custom: {
    50: '#c6c676',
    500: '#aaaf38',
    950: '#000000',
  },
}
SCSS
$custom: #aaaf38;
$custom-light: #c6c676;
$custom-dark: #000000;
JSON
{
  "hex": "#aaaf38",
  "rgb": {
    "r": 170,
    "g": 175,
    "b": 56
  },
  "hsl": {
    "h": 62.521,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.72791,
    "c": 0.13893,
    "h": 111.7
  },
  "luminance": 0.39492
}

Semantic roles & 50–950 ramp

primary
#AAAF38
secondary
#8280C3
accent
#4DDB53
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131309
muted
#82827B

Preview Lab

Preview with #AAAF38

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

Preview Lab → · Contrast checker → · Palette generator →

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