#AF5CD2#AF5CD2

#AF5CD2 is a light, vivid purple. Relative luminance 0.214; OKLCH L 62.1% C 0.186 H 314.8°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#AF5CD2
RGBrgb(175, 92, 210)
HSLhsl(282, 57%, 59%)
HSVhsv(282, 56%, 82%)
CMYKcmyk(16.7%, 56.2%, 0%, 17.6%)
CIE-LABlab(53.41, 52.73, -47.29)
CIE-LCHlch(53.41, 70.83, 318.11°)
OKLaboklab(62.07% 0.1312 -0.1322)
OKLCHoklch(62.07% 0.186 314.8)
XYZxyz(33.1373, 21.4224, 63.3496)
Luminance0.2142 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5CD2 #7FD25C
analogous
#745CD2 #AF5CD2 #D25CBA
triadic
#AF5CD2 #D2AF5C #5CD2AF
tetradic
#AF5CD2 #D2745C #7FD25C #5CBAD2
square
#AF5CD2 #D2745C #7FD25C #5CBAD2
split-complementary
#AF5CD2 #BAD25C #5CD274
monochromatic
#6F278D #9434BD #AF5CD2 #C78CDF #DEBCEC

Accessibility & contrast

On white

3.97
#AF5CD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF5CD2#FFFFFF#000000##000000
##AF5CD21.003.975.285.28
#FFFFFF3.971.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C7BD6
Deuteranopia (green-blind)
#5A82CF
Tritanopia (blue-blind)
#AC708E
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #af5cd2;
/* rgb */ color: rgb(175, 92, 210);
/* oklch */ color: oklch(62.1% 0.186 314.8);
Tailwind
colors: {
  custom: {
    50: '#ca8ee0',
    500: '#af5cd2',
    950: '#000000',
  },
}
SCSS
$custom: #af5cd2;
$custom-light: #ca8ee0;
$custom-dark: #000000;
JSON
{
  "hex": "#af5cd2",
  "rgb": {
    "r": 175,
    "g": 92,
    "b": 210
  },
  "hsl": {
    "h": 282.203,
    "s": 56.731,
    "l": 59.216
  },
  "oklch": {
    "l": 0.62067,
    "c": 0.1863,
    "h": 314.8
  },
  "luminance": 0.21421
}

Semantic roles & 50–950 ramp

primary
#AF5CD2
secondary
#BCDCAE
accent
#E04875
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AF5CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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