#AF5DCA#AF5DCA

#AF5DCA is a mid, vivid purple. Relative luminance 0.212; OKLCH L 61.8% C 0.176 H 317.1°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#AF5DCA
RGBrgb(175, 93, 202)
HSLhsl(285, 51%, 58%)
HSVhsv(285, 54%, 79%)
CMYKcmyk(13.4%, 54%, 0%, 20.8%)
CIE-LABlab(53.18, 50.57, -43.10)
CIE-LCHlch(53.18, 66.45, 319.56°)
OKLaboklab(61.76% 0.1294 -0.12)
OKLCHoklch(61.76% 0.176 317.1)
XYZxyz(32.2527, 21.2081, 58.2603)
Luminance0.2121 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5DCA #78CA5D
analogous
#795DCA #AF5DCA #CA5DAE
triadic
#AF5DCA #CAAF5D #5DCAAF
tetradic
#AF5DCA #CA795D #78CA5D #5DAECA
square
#AF5DCA #CA795D #78CA5D #5DAECA
split-complementary
#AF5DCA #AECA5D #5DCA79
monochromatic
#6C2B82 #933AB0 #AF5DCA #C68BD9 #DDB9E8

Accessibility & contrast

On white

4.01
#AF5DCA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#AF5DCA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5DCA
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5DCA#FFFFFF#000000##000000
##AF5DCA1.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#457ACE
Deuteranopia (green-blind)
#6082C7
Tritanopia (blue-blind)
#AE6E8B
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #af5dca;
/* rgb */ color: rgb(175, 93, 202);
/* oklch */ color: oklch(61.8% 0.176 317.1);
Tailwind
colors: {
  custom: {
    50: '#c98eda',
    500: '#af5dca',
    950: '#000000',
  },
}
SCSS
$custom: #af5dca;
$custom-light: #c98eda;
$custom-dark: #000000;
JSON
{
  "hex": "#af5dca",
  "rgb": {
    "r": 175,
    "g": 93,
    "b": 202
  },
  "hsl": {
    "h": 285.138,
    "s": 50.698,
    "l": 57.843
  },
  "oklch": {
    "l": 0.6176,
    "c": 0.17646,
    "h": 317.1
  },
  "luminance": 0.21207
}

Semantic roles & 50–950 ramp

primary
#AF5DCA
secondary
#B6D7AC
accent
#DA4E70
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#130D15
muted
#827D83

Preview Lab

Preview with #AF5DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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