#AF5DCD#AF5DCD

#AF5DCD is a mid, vivid purple. Relative luminance 0.213; OKLCH L 61.9% C 0.180 H 316.2°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#AF5DCD
RGBrgb(175, 93, 205)
HSLhsl(284, 53%, 58%)
HSVhsv(284, 55%, 80%)
CMYKcmyk(14.6%, 54.6%, 0%, 19.6%)
CIE-LABlab(53.33, 51.19, -44.57)
CIE-LCHlch(53.33, 67.87, 318.96°)
OKLaboklab(61.93% 0.1296 -0.1243)
OKLCHoklch(61.93% 0.18 316.2)
XYZxyz(32.6113, 21.3515, 60.1492)
Luminance0.2135 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5DCD #7BCD5D
analogous
#775DCD #AF5DCD #CD5DB3
triadic
#AF5DCD #CDAF5D #5DCDAF
tetradic
#AF5DCD #CD775D #7BCD5D #5DB3CD
square
#AF5DCD #CD775D #7BCD5D #5DB3CD
split-complementary
#AF5DCD #B3CD5D #5DCD77
monochromatic
#6D2986 #9338B5 #AF5DCD #C68CDB #DDBBEA

Accessibility & contrast

On white

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

On black

5.27
#AF5DCD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5DCD
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5DCD#FFFFFF#000000##000000
##AF5DCD1.003.985.275.27
#FFFFFF3.981.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#437AD1
Deuteranopia (green-blind)
#5E82CA
Tritanopia (blue-blind)
#AE6F8C
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #af5dcd;
/* rgb */ color: rgb(175, 93, 205);
/* oklch */ color: oklch(61.9% 0.180 316.2);
Tailwind
colors: {
  custom: {
    50: '#c98edd',
    500: '#af5dcd',
    950: '#000000',
  },
}
SCSS
$custom: #af5dcd;
$custom-light: #c98edd;
$custom-dark: #000000;
JSON
{
  "hex": "#af5dcd",
  "rgb": {
    "r": 175,
    "g": 93,
    "b": 205
  },
  "hsl": {
    "h": 283.929,
    "s": 52.83,
    "l": 58.431
  },
  "oklch": {
    "l": 0.61925,
    "c": 0.17957,
    "h": 316.2
  },
  "luminance": 0.2135
}

Semantic roles & 50–950 ramp

primary
#AF5DCD
secondary
#B9D9AD
accent
#DC4C72
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#130D15
muted
#827D83

Preview Lab

Preview with #AF5DCD

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

Preview Lab → · Contrast checker → · Palette generator →

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