#AF5AE1#AF5AE1

#AF5AE1 is a light, highly saturated violet. Relative luminance 0.219; OKLCH L 62.7% C 0.205 H 310.9°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#AF5AE1
RGBrgb(175, 90, 225)
HSLhsl(278, 69%, 62%)
HSVhsv(278, 60%, 88%)
CMYKcmyk(22.2%, 60%, 0%, 11.8%)
CIE-LABlab(53.88, 56.91, -55.04)
CIE-LCHlch(53.88, 79.17, 315.96°)
OKLaboklab(62.68% 0.1341 -0.1548)
OKLCHoklch(62.68% 0.205 310.9)
XYZxyz(34.9234, 21.8633, 73.5999)
Luminance0.2186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5AE1 #8CE15A
analogous
#6C5AE1 #AF5AE1 #E15AD0
triadic
#AF5AE1 #E1AF5A #5AE1AF
tetradic
#AF5AE1 #E16C5A #8CE15A #5AD0E1
square
#AF5AE1 #E16C5A #8CE15A #5AD0E1
split-complementary
#AF5AE1 #D0E15A #5AE16C
monochromatic
#721EA3 #9627D7 #AF5AE1 #C88EEA #E1C2F4

Accessibility & contrast

On white

3.91
#AF5AE1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#AF5AE1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5AE1
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5AE1#FFFFFF#000000##000000
##AF5AE11.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#257DE5
Deuteranopia (green-blind)
#4D82DE
Tritanopia (blue-blind)
#A97395
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #af5ae1;
/* rgb */ color: rgb(175, 90, 225);
/* oklch */ color: oklch(62.7% 0.205 310.9);
Tailwind
colors: {
  custom: {
    50: '#ca8deb',
    500: '#af5ae1',
    950: '#000000',
  },
}
SCSS
$custom: #af5ae1;
$custom-light: #ca8deb;
$custom-dark: #000000;
JSON
{
  "hex": "#af5ae1",
  "rgb": {
    "r": 175,
    "g": 90,
    "b": 225
  },
  "hsl": {
    "h": 277.778,
    "s": 69.231,
    "l": 61.765
  },
  "oklch": {
    "l": 0.62683,
    "c": 0.20484,
    "h": 310.9
  },
  "luminance": 0.21863
}

Semantic roles & 50–950 ramp

primary
#AF5AE1
secondary
#C5E4B2
accent
#D1145A
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF5AE1

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

Preview Lab → · Contrast checker → · Palette generator →

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