#AFAC52#AFAC52

#AFAC52 is a light, moderate yellow. Relative luminance 0.392; OKLCH L 72.8% C 0.113 H 107.2°. Best body text is #000000 at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#AFAC52
RGBrgb(175, 172, 82)
HSLhsl(58, 37%, 50%)
HSVhsv(58, 53%, 69%)
CMYKcmyk(0%, 1.7%, 53.1%, 31.4%)
CIE-LABlab(68.92, -11.24, 46.03)
CIE-LCHlch(68.92, 47.39, 103.72°)
OKLaboklab(72.82% -0.0333 0.1079)
OKLCHoklch(72.82% 0.113 107.2)
XYZxyz(33.9556, 39.2291, 13.7643)
Luminance0.3923 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAC52 #5255AF
analogous
#AF7E52 #AFAC52 #83AF52
triadic
#AFAC52 #52AFAC #AC52AF
tetradic
#AFAC52 #52AF7E #5255AF #AF5283
square
#AFAC52 #52AF7E #5255AF #AF5283
split-complementary
#AFAC52 #5283AF #7E52AF
monochromatic
#5C5A2B #86843E #AFAC52 #C2C07C #D6D4A6

Accessibility & contrast

On white

2.37
#AFAC52 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.85
#AFAC52 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAC52
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAC52#FFFFFF#000000##000000
##AFAC521.002.378.858.85
#FFFFFF2.371.0021.0021.00
#0000008.8521.001.001.00
##0000008.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A649
Deuteranopia (green-blind)
#BAAA57
Tritanopia (blue-blind)
#BAA298
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #afac52;
/* rgb */ color: rgb(175, 172, 82);
/* oklch */ color: oklch(72.8% 0.113 107.2);
Tailwind
colors: {
  custom: {
    50: '#c9c485',
    500: '#afac52',
    950: '#000000',
  },
}
SCSS
$custom: #afac52;
$custom-light: #c9c485;
$custom-dark: #000000;
JSON
{
  "hex": "#afac52",
  "rgb": {
    "r": 175,
    "g": 172,
    "b": 82
  },
  "hsl": {
    "h": 58.065,
    "s": 36.759,
    "l": 50.392
  },
  "oklch": {
    "l": 0.72815,
    "c": 0.11294,
    "h": 107.2
  },
  "luminance": 0.39228
}

Semantic roles & 50–950 ramp

primary
#AFAC52
secondary
#9A9BC3
accent
#5FCD5B
background
#FCFCF8
surface
#F9F8EF
border
#D2D1CA
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFAC52

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

Preview Lab → · Contrast checker → · Palette generator →

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