#AF5ACE#AF5ACE

#AF5ACE is a mid, vivid purple. Relative luminance 0.209; OKLCH L 61.6% C 0.185 H 316.2°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#AF5ACE
RGBrgb(175, 90, 206)
HSLhsl(284, 54%, 58%)
HSVhsv(284, 56%, 81%)
CMYKcmyk(15%, 56.3%, 0%, 19.2%)
CIE-LABlab(52.82, 52.90, -45.95)
CIE-LCHlch(52.82, 70.07, 319.02°)
OKLaboklab(61.57% 0.1336 -0.1283)
OKLCHoklch(61.57% 0.185 316.2)
XYZxyz(32.4743, 20.8836, 60.7009)
Luminance0.2088 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5ACE #79CE5A
analogous
#755ACE #AF5ACE #CE5AB3
triadic
#AF5ACE #CEAF5A #5ACEAF
tetradic
#AF5ACE #CE755A #79CE5A #5AB3CE
square
#AF5ACE #CE755A #79CE5A #5AB3CE
split-complementary
#AF5ACE #B3CE5A #5ACE75
monochromatic
#6D2886 #9336B5 #AF5ACE #C689DC #DDB8EA

Accessibility & contrast

On white

4.06
#AF5ACE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#AF5ACE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5ACE
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5ACE#FFFFFF#000000##000000
##AF5ACE1.004.065.185.18
#FFFFFF4.061.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D79D2
Deuteranopia (green-blind)
#5B81CB
Tritanopia (blue-blind)
#AD6D8C
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #af5ace;
/* rgb */ color: rgb(175, 90, 206);
/* oklch */ color: oklch(61.6% 0.185 316.2);
Tailwind
colors: {
  custom: {
    50: '#c98cdd',
    500: '#af5ace',
    950: '#000000',
  },
}
SCSS
$custom: #af5ace;
$custom-light: #c98cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#af5ace",
  "rgb": {
    "r": 175,
    "g": 90,
    "b": 206
  },
  "hsl": {
    "h": 283.966,
    "s": 54.206,
    "l": 58.039
  },
  "oklch": {
    "l": 0.61568,
    "c": 0.18522,
    "h": 316.2
  },
  "luminance": 0.20883
}

Semantic roles & 50–950 ramp

primary
#AF5ACE
secondary
#B7D9AB
accent
#DE4A72
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AF5ACE

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

Preview Lab → · Contrast checker → · Palette generator →

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