#AF5CDF#AF5CDF

#AF5CDF is a light, vivid violet. Relative luminance 0.221; OKLCH L 62.8% C 0.200 H 311.2°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#AF5CDF
RGBrgb(175, 92, 223)
HSLhsl(278, 67%, 62%)
HSVhsv(278, 59%, 87%)
CMYKcmyk(21.5%, 58.7%, 0%, 12.5%)
CIE-LABlab(54.13, 55.50, -53.51)
CIE-LCHlch(54.13, 77.09, 316.04°)
OKLaboklab(62.83% 0.1316 -0.1504)
OKLCHoklch(62.83% 0.2 311.2)
XYZxyz(34.8232, 22.0967, 72.2284)
Luminance0.2210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5CDF #8CDF5C
analogous
#6E5CDF #AF5CDF #DF5CCE
triadic
#AF5CDF #DFAF5C #5CDFAF
tetradic
#AF5CDF #DF6E5C #8CDF5C #5CCEDF
square
#AF5CDF #DF6E5C #8CDF5C #5CCEDF
split-complementary
#AF5CDF #CEDF5C #5CDF6E
monochromatic
#7220A1 #962AD4 #AF5CDF #C88FE9 #E1C2F3

Accessibility & contrast

On white

3.88
#AF5CDF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#AF5CDF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5CDF
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5CDF#FFFFFF#000000##000000
##AF5CDF1.003.885.425.42
#FFFFFF3.881.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D7DE3
Deuteranopia (green-blind)
#5183DC
Tritanopia (blue-blind)
#A97495
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #af5cdf;
/* rgb */ color: rgb(175, 92, 223);
/* oklch */ color: oklch(62.8% 0.200 311.2);
Tailwind
colors: {
  custom: {
    50: '#ca8eea',
    500: '#af5cdf',
    950: '#000000',
  },
}
SCSS
$custom: #af5cdf;
$custom-light: #ca8eea;
$custom-dark: #000000;
JSON
{
  "hex": "#af5cdf",
  "rgb": {
    "r": 175,
    "g": 92,
    "b": 223
  },
  "hsl": {
    "h": 278.015,
    "s": 67.179,
    "l": 61.765
  },
  "oklch": {
    "l": 0.62827,
    "c": 0.19987,
    "h": 311.2
  },
  "luminance": 0.22096
}

Semantic roles & 50–950 ramp

primary
#AF5CDF
secondary
#C5E4B3
accent
#CF165A
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140D16
muted
#827D84

Preview Lab

Preview with #AF5CDF

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

Preview Lab → · Contrast checker → · Palette generator →

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