#AFAA52#AFAA52

#AFAA52 is a light, moderate yellow. Relative luminance 0.385; OKLCH L 72.4% C 0.111 H 105.9°. Best body text is #000000 at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#AFAA52
RGBrgb(175, 170, 82)
HSLhsl(57, 37%, 50%)
HSVhsv(57, 53%, 69%)
CMYKcmyk(0%, 2.9%, 53.1%, 31.4%)
CIE-LABlab(68.37, -10.20, 45.39)
CIE-LCHlch(68.37, 46.52, 102.66°)
OKLaboklab(72.38% -0.0303 0.1065)
OKLCHoklch(72.38% 0.111 105.9)
XYZxyz(33.5778, 38.4736, 13.6384)
Luminance0.3847 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAA52 #5257AF
analogous
#AF7B52 #AFAA52 #85AF52
triadic
#AFAA52 #52AFAA #AA52AF
tetradic
#AFAA52 #52AF7B #5257AF #AF5285
square
#AFAA52 #52AF7B #5257AF #AF5285
split-complementary
#AFAA52 #5285AF #7B52AF
monochromatic
#5C592B #86823E #AFAA52 #C2BF7C #D6D3A6

Accessibility & contrast

On white

2.42
#AFAA52 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.69
#AFAA52 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAA52
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAA52#FFFFFF#000000##000000
##AFAA521.002.428.698.69
#FFFFFF2.421.0021.0021.00
#0000008.6921.001.001.00
##0000008.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A44A
Deuteranopia (green-blind)
#B9A956
Tritanopia (blue-blind)
#BAA096
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afaa52;
/* rgb */ color: rgb(175, 170, 82);
/* oklch */ color: oklch(72.4% 0.111 105.9);
Tailwind
colors: {
  custom: {
    50: '#c9c385',
    500: '#afaa52',
    950: '#000000',
  },
}
SCSS
$custom: #afaa52;
$custom-light: #c9c385;
$custom-dark: #000000;
JSON
{
  "hex": "#afaa52",
  "rgb": {
    "r": 175,
    "g": 170,
    "b": 82
  },
  "hsl": {
    "h": 56.774,
    "s": 36.759,
    "l": 50.392
  },
  "oklch": {
    "l": 0.72378,
    "c": 0.11076,
    "h": 105.9
  },
  "luminance": 0.38473
}

Semantic roles & 50–950 ramp

primary
#AFAA52
secondary
#9A9CC3
accent
#61CD5B
background
#FCFBF8
surface
#F9F7EF
border
#D2D0CA
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFAA52

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

Preview Lab → · Contrast checker → · Palette generator →

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