#AF54A2#AF54A2

#AF54A2 is a mid, vivid purple. Relative luminance 0.181; OKLCH L 58.5% C 0.153 H 333.0°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#AF54A2
RGBrgb(175, 84, 162)
HSLhsl(309, 36%, 51%)
HSVhsv(309, 52%, 69%)
CMYKcmyk(0%, 52%, 7.4%, 31.4%)
CIE-LABlab(49.57, 47.53, -25.52)
CIE-LCHlch(49.57, 53.95, 331.77°)
OKLaboklab(58.48% 0.1363 -0.0694)
OKLCHoklch(58.48% 0.153 333)
XYZxyz(27.3711, 18.0650, 36.2207)
Luminance0.1806 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF54A2 #54AF61
analogous
#8E54AF #AF54A2 #AF5474
triadic
#AF54A2 #A2AF54 #54A2AF
tetradic
#AF54A2 #AF8E54 #54AF61 #5474AF
square
#AF54A2 #AF8E54 #54AF61 #5474AF
split-complementary
#AF54A2 #74AF54 #54AF8E
monochromatic
#5D2C56 #873F7D #AF54A2 #C37EB9 #D6A7CF

Accessibility & contrast

On white

4.55
#AF54A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#AF54A2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF54A2
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF54A2#FFFFFF#000000##000000
##AF54A21.004.554.614.61
#FFFFFF4.551.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#526EA5
Deuteranopia (green-blind)
#6C7B9F
Tritanopia (blue-blind)
#B65A74
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #af54a2;
/* rgb */ color: rgb(175, 84, 162);
/* oklch */ color: oklch(58.5% 0.153 333.0);
Tailwind
colors: {
  custom: {
    50: '#c988bd',
    500: '#af54a2',
    950: '#000000',
  },
}
SCSS
$custom: #af54a2;
$custom-light: #c988bd;
$custom-dark: #000000;
JSON
{
  "hex": "#af54a2",
  "rgb": {
    "r": 175,
    "g": 84,
    "b": 162
  },
  "hsl": {
    "h": 308.571,
    "s": 36.255,
    "l": 50.784
  },
  "oklch": {
    "l": 0.58484,
    "c": 0.15296,
    "h": 333
  },
  "luminance": 0.18063
}

Semantic roles & 50–950 ramp

primary
#AF54A2
secondary
#9BC4A1
accent
#CC6C5C
background
#FCF8FB
surface
#F9F0F6
border
#D2CBD0
text
#130C12
muted
#827D81

Preview Lab

Preview with #AF54A2

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

Preview Lab → · Contrast checker → · Palette generator →

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