#AF5CCD#AF5CCD

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

Color values

HEX#AF5CCD
RGBrgb(175, 92, 205)
HSLhsl(284, 53%, 58%)
HSVhsv(284, 55%, 80%)
CMYKcmyk(14.6%, 55.1%, 0%, 19.6%)
CIE-LABlab(53.14, 51.69, -44.87)
CIE-LCHlch(53.14, 68.45, 319.05°)
OKLaboklab(61.79% 0.1309 -0.1252)
OKLCHoklch(61.79% 0.181 316.3)
XYZxyz(32.5241, 21.1771, 60.1201)
Luminance0.2118 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5CCD #7ACD5C
analogous
#765CCD #AF5CCD #CD5CB2
triadic
#AF5CCD #CDAF5C #5CCDAF
tetradic
#AF5CCD #CD765C #7ACD5C #5CB2CD
square
#AF5CCD #CD765C #7ACD5C #5CB2CD
split-complementary
#AF5CCD #B2CD5C #5CCD76
monochromatic
#6D2986 #9337B4 #AF5CCD #C68BDB #DDBAEA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF5CCD#FFFFFF#000000##000000
##AF5CCD1.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)
#417AD1
Deuteranopia (green-blind)
#5D81CA
Tritanopia (blue-blind)
#AE6E8C
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #af5ccd;
/* rgb */ color: rgb(175, 92, 205);
/* oklch */ color: oklch(61.8% 0.181 316.3);
Tailwind
colors: {
  custom: {
    50: '#c98edd',
    500: '#af5ccd',
    950: '#000000',
  },
}
SCSS
$custom: #af5ccd;
$custom-light: #c98edd;
$custom-dark: #000000;
JSON
{
  "hex": "#af5ccd",
  "rgb": {
    "r": 175,
    "g": 92,
    "b": 205
  },
  "hsl": {
    "h": 284.071,
    "s": 53.052,
    "l": 58.235
  },
  "oklch": {
    "l": 0.61786,
    "c": 0.18112,
    "h": 316.3
  },
  "luminance": 0.21176
}

Semantic roles & 50–950 ramp

primary
#AF5CCD
secondary
#B8D9AC
accent
#DC4B72
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AF5CCD

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

Preview Lab → · Contrast checker → · Palette generator →

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