#AF5CF1#AF5CF1

#AF5CF1 is a light, highly saturated violet. Relative luminance 0.231; OKLCH L 63.9% C 0.219 H 306.9°. Best body text is #000000 at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#AF5CF1
RGBrgb(175, 92, 241)
HSLhsl(273, 84%, 65%)
HSVhsv(273, 62%, 95%)
CMYKcmyk(27.4%, 61.8%, 0%, 5.5%)
CIE-LABlab(55.20, 59.45, -61.91)
CIE-LCHlch(55.20, 85.83, 313.84°)
OKLaboklab(63.94% 0.1313 -0.175)
OKLCHoklch(63.94% 0.219 306.9)
XYZxyz(37.3802, 23.1195, 85.6953)
Luminance0.2312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5CF1 #9EF15C
analogous
#645CF1 #AF5CF1 #F15CE8
triadic
#AF5CF1 #F1AF5C #5CF1AF
tetradic
#AF5CF1 #F1645C #9EF15C #5CE8F1
square
#AF5CF1 #F1645C #9EF15C #5CE8F1
split-complementary
#AF5CF1 #E8F15C #5CF164
monochromatic
#7311C2 #9324EC #AF5CF1 #CB94F6 #E6CDFB

Accessibility & contrast

On white

3.73
#AF5CF1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.62
#AF5CF1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5CF1
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5CF1#FFFFFF#000000##000000
##AF5CF11.003.735.625.62
#FFFFFF3.731.0021.0021.00
#0000005.6221.001.001.00
##0000005.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0081F6
Deuteranopia (green-blind)
#3F85EE
Tritanopia (blue-blind)
#A47A9E
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #af5cf1;
/* rgb */ color: rgb(175, 92, 241);
/* oklch */ color: oklch(63.9% 0.219 306.9);
Tailwind
colors: {
  custom: {
    50: '#cb8ef6',
    500: '#af5cf1',
    950: '#000000',
  },
}
SCSS
$custom: #af5cf1;
$custom-light: #cb8ef6;
$custom-dark: #000000;
JSON
{
  "hex": "#af5cf1",
  "rgb": {
    "r": 175,
    "g": 92,
    "b": 241
  },
  "hsl": {
    "h": 273.423,
    "s": 84.181,
    "l": 65.294
  },
  "oklch": {
    "l": 0.63943,
    "c": 0.2188,
    "h": 306.9
  },
  "luminance": 0.23119
}

Semantic roles & 50–950 ramp

primary
#AF5CF1
secondary
#D2EEBB
accent
#E10566
background
#FCF9FF
surface
#F9F1FF
border
#D2CBD7
text
#140D17
muted
#827E85

Preview Lab

Preview with #AF5CF1

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

Preview Lab → · Contrast checker → · Palette generator →

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