#AF5FD2#AF5FD2

#AF5FD2 is a light, vivid purple. Relative luminance 0.220; OKLCH L 62.5% C 0.182 H 314.5°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#AF5FD2
RGBrgb(175, 95, 210)
HSLhsl(282, 56%, 60%)
HSVhsv(282, 55%, 82%)
CMYKcmyk(16.7%, 54.8%, 0%, 17.6%)
CIE-LABlab(53.98, 51.22, -46.39)
CIE-LCHlch(53.98, 69.11, 317.83°)
OKLaboklab(62.48% 0.1273 -0.1296)
OKLCHoklch(62.48% 0.182 314.5)
XYZxyz(33.4024, 21.9525, 63.4380)
Luminance0.2195 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5FD2 #82D25F
analogous
#755FD2 #AF5FD2 #D25FBC
triadic
#AF5FD2 #D2AF5F #5FD2AF
tetradic
#AF5FD2 #D2755F #82D25F #5FBCD2
square
#AF5FD2 #D2755F #82D25F #5FBCD2
split-complementary
#AF5FD2 #BCD25F #5FD275
monochromatic
#6F288F #9536BE #AF5FD2 #C78FDF #DFBFED

Accessibility & contrast

On white

3.90
#AF5FD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.39
#AF5FD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5FD2
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5FD2#FFFFFF#000000##000000
##AF5FD21.003.905.395.39
#FFFFFF3.901.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#427CD6
Deuteranopia (green-blind)
#5D83CF
Tritanopia (blue-blind)
#AC7290
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #af5fd2;
/* rgb */ color: rgb(175, 95, 210);
/* oklch */ color: oklch(62.5% 0.182 314.5);
Tailwind
colors: {
  custom: {
    50: '#c990e0',
    500: '#af5fd2',
    950: '#000000',
  },
}
SCSS
$custom: #af5fd2;
$custom-light: #c990e0;
$custom-dark: #000000;
JSON
{
  "hex": "#af5fd2",
  "rgb": {
    "r": 175,
    "g": 95,
    "b": 210
  },
  "hsl": {
    "h": 281.739,
    "s": 56.098,
    "l": 59.804
  },
  "oklch": {
    "l": 0.62484,
    "c": 0.18169,
    "h": 314.5
  },
  "luminance": 0.21952
}

Semantic roles & 50–950 ramp

primary
#AF5FD2
secondary
#BEDDB0
accent
#DF4876
background
#FCF9FD
surface
#F9F1FB
border
#D2CBD4
text
#130D15
muted
#827E83

Preview Lab

Preview with #AF5FD2

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

Preview Lab → · Contrast checker → · Palette generator →

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