#AF5ECD#AF5ECD

#AF5ECD is a light, vivid purple. Relative luminance 0.215; OKLCH L 62.1% C 0.178 H 316.1°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#AF5ECD
RGBrgb(175, 94, 205)
HSLhsl(284, 53%, 59%)
HSVhsv(284, 54%, 80%)
CMYKcmyk(14.6%, 54.1%, 0%, 19.6%)
CIE-LABlab(53.52, 50.69, -44.26)
CIE-LCHlch(53.52, 67.29, 318.87°)
OKLaboklab(62.07% 0.1283 -0.1234)
OKLCHoklch(62.07% 0.178 316.1)
XYZxyz(32.6997, 21.5282, 60.1786)
Luminance0.2153 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5ECD #7CCD5E
analogous
#775ECD #AF5ECD #CD5EB3
triadic
#AF5ECD #CDAF5E #5ECDAF
tetradic
#AF5ECD #CD775E #7CCD5E #5EB3CD
square
#AF5ECD #CD775E #7CCD5E #5EB3CD
split-complementary
#AF5ECD #B3CD5E #5ECD77
monochromatic
#6E2A87 #9438B5 #AF5ECD #C68DDC #DDBBEA

Accessibility & contrast

On white

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

On black

5.31
#AF5ECD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5ECD
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5ECD#FFFFFF#000000##000000
##AF5ECD1.003.965.315.31
#FFFFFF3.961.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#447BD1
Deuteranopia (green-blind)
#5F82CA
Tritanopia (blue-blind)
#AD708D
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #af5ecd;
/* rgb */ color: rgb(175, 94, 205);
/* oklch */ color: oklch(62.1% 0.178 316.1);
Tailwind
colors: {
  custom: {
    50: '#c98fdd',
    500: '#af5ecd',
    950: '#000000',
  },
}
SCSS
$custom: #af5ecd;
$custom-light: #c98fdd;
$custom-dark: #000000;
JSON
{
  "hex": "#af5ecd",
  "rgb": {
    "r": 175,
    "g": 94,
    "b": 205
  },
  "hsl": {
    "h": 283.784,
    "s": 52.607,
    "l": 58.627
  },
  "oklch": {
    "l": 0.62065,
    "c": 0.178,
    "h": 316.1
  },
  "luminance": 0.21527
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF5ECD

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

Preview Lab → · Contrast checker → · Palette generator →

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