#AF5DCE#AF5DCE

#AF5DCE is a mid, vivid purple. Relative luminance 0.214; OKLCH L 62.0% C 0.181 H 315.9°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#AF5DCE
RGBrgb(175, 93, 206)
HSLhsl(284, 54%, 59%)
HSVhsv(284, 55%, 81%)
CMYKcmyk(15%, 54.9%, 0%, 19.2%)
CIE-LABlab(53.38, 51.40, -45.05)
CIE-LCHlch(53.38, 68.35, 318.76°)
OKLaboklab(61.98% 0.1297 -0.1257)
OKLCHoklch(61.98% 0.181 315.9)
XYZxyz(32.7324, 21.4000, 60.7869)
Luminance0.2140 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5DCE #7CCE5D
analogous
#765DCE #AF5DCE #CE5DB4
triadic
#AF5DCE #CEAF5D #5DCEAF
tetradic
#AF5DCE #CE765D #7CCE5D #5DB4CE
square
#AF5DCE #CE765D #7CCE5D #5DB4CE
split-complementary
#AF5DCE #B4CE5D #5DCE76
monochromatic
#6E2988 #9437B7 #AF5DCE #C68CDC #DDBBEA

Accessibility & contrast

On white

3.98
#AF5DCE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#AF5DCE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5DCE
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5DCE#FFFFFF#000000##000000
##AF5DCE1.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#427BD2
Deuteranopia (green-blind)
#5E82CB
Tritanopia (blue-blind)
#AD6F8D
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #af5dce;
/* rgb */ color: rgb(175, 93, 206);
/* oklch */ color: oklch(62.0% 0.181 315.9);
Tailwind
colors: {
  custom: {
    50: '#c98edd',
    500: '#af5dce',
    950: '#000000',
  },
}
SCSS
$custom: #af5dce;
$custom-light: #c98edd;
$custom-dark: #000000;
JSON
{
  "hex": "#af5dce",
  "rgb": {
    "r": 175,
    "g": 93,
    "b": 206
  },
  "hsl": {
    "h": 283.54,
    "s": 53.555,
    "l": 58.627
  },
  "oklch": {
    "l": 0.6198,
    "c": 0.1806,
    "h": 315.9
  },
  "luminance": 0.21399
}

Semantic roles & 50–950 ramp

primary
#AF5DCE
secondary
#B9DAAD
accent
#DD4B73
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#130D15
muted
#827D83

Preview Lab

Preview with #AF5DCE

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

Preview Lab → · Contrast checker → · Palette generator →

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