#AF54AE#AF54AE

#AF54AE is a mid, vivid purple. Relative luminance 0.185; OKLCH L 59.1% C 0.164 H 327.8°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#AF54AE
RGBrgb(175, 84, 174)
HSLhsl(301, 36%, 51%)
HSVhsv(301, 52%, 69%)
CMYKcmyk(0%, 52%, 0.6%, 31.4%)
CIE-LABlab(50.11, 49.66, -31.73)
CIE-LCHlch(50.11, 58.93, 327.42°)
OKLaboklab(59.06% 0.1384 -0.0871)
OKLCHoklch(59.06% 0.164 327.8)
XYZxyz(28.4891, 18.5122, 42.1088)
Luminance0.1851 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF54AE #54AF55
analogous
#8254AF #AF54AE #AF5480
triadic
#AF54AE #AEAF54 #54AEAF
tetradic
#AF54AE #AF8254 #54AF55 #5480AF
square
#AF54AE #AF8254 #54AF55 #5480AF
split-complementary
#AF54AE #80AF54 #54AF82
monochromatic
#5D2C5D #873F86 #AF54AE #C37EC2 #D6A7D5

Accessibility & contrast

On white

4.47
#AF54AE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#AF54AE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF54AE
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF54AE#FFFFFF#000000##000000
##AF54AE1.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C70B1
Deuteranopia (green-blind)
#687BAB
Tritanopia (blue-blind)
#B45E79
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #af54ae;
/* rgb */ color: rgb(175, 84, 174);
/* oklch */ color: oklch(59.1% 0.164 327.8);
Tailwind
colors: {
  custom: {
    50: '#c988c6',
    500: '#af54ae',
    950: '#000000',
  },
}
SCSS
$custom: #af54ae;
$custom-light: #c988c6;
$custom-dark: #000000;
JSON
{
  "hex": "#af54ae",
  "rgb": {
    "r": 175,
    "g": 84,
    "b": 174
  },
  "hsl": {
    "h": 300.659,
    "s": 36.255,
    "l": 50.784
  },
  "oklch": {
    "l": 0.59056,
    "c": 0.16353,
    "h": 327.8
  },
  "luminance": 0.18511
}

Semantic roles & 50–950 ramp

primary
#AF54AE
secondary
#9BC49C
accent
#CC5D5C
background
#FCF8FC
surface
#F9F0F8
border
#D2CBD1
text
#130C13
muted
#827D82

Preview Lab

Preview with #AF54AE

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

Preview Lab → · Contrast checker → · Palette generator →

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