#AF5CD4#AF5CD4

#AF5CD4 is a light, vivid purple. Relative luminance 0.215; OKLCH L 62.2% C 0.188 H 314.2°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#AF5CD4
RGBrgb(175, 92, 212)
HSLhsl(282, 58%, 60%)
HSVhsv(282, 57%, 83%)
CMYKcmyk(17.5%, 56.6%, 0%, 16.9%)
CIE-LABlab(53.52, 53.15, -48.26)
CIE-LCHlch(53.52, 71.79, 317.76°)
OKLaboklab(62.18% 0.1313 -0.135)
OKLCHoklch(62.18% 0.188 314.2)
XYZxyz(33.3881, 21.5227, 64.6701)
Luminance0.2152 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5CD4 #81D45C
analogous
#735CD4 #AF5CD4 #D45CBD
triadic
#AF5CD4 #D4AF5C #5CD4AF
tetradic
#AF5CD4 #D4735C #81D45C #5CBDD4
square
#AF5CD4 #D4735C #81D45C #5CBDD4
split-complementary
#AF5CD4 #BDD45C #5CD473
monochromatic
#6F2690 #9533C0 #AF5CD4 #C78CE1 #DFBDEE

Accessibility & contrast

On white

3.96
#AF5CD4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#AF5CD4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5CD4
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5CD4#FFFFFF#000000##000000
##AF5CD41.003.965.305.30
#FFFFFF3.961.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B7BD8
Deuteranopia (green-blind)
#5982D1
Tritanopia (blue-blind)
#AC708F
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #af5cd4;
/* rgb */ color: rgb(175, 92, 212);
/* oklch */ color: oklch(62.2% 0.188 314.2);
Tailwind
colors: {
  custom: {
    50: '#ca8ee2',
    500: '#af5cd4',
    950: '#000000',
  },
}
SCSS
$custom: #af5cd4;
$custom-light: #ca8ee2;
$custom-dark: #000000;
JSON
{
  "hex": "#af5cd4",
  "rgb": {
    "r": 175,
    "g": 92,
    "b": 212
  },
  "hsl": {
    "h": 281.5,
    "s": 58.252,
    "l": 59.608
  },
  "oklch": {
    "l": 0.62181,
    "c": 0.18838,
    "h": 314.2
  },
  "luminance": 0.21522
}

Semantic roles & 50–950 ramp

primary
#AF5CD4
secondary
#BDDDAF
accent
#E14676
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #AF5CD4

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

Preview Lab → · Contrast checker → · Palette generator →

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