#AF55E1#AF55E1

#AF55E1 is a light, highly saturated violet. Relative luminance 0.210; OKLCH L 62.0% C 0.212 H 311.4°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#AF55E1
RGBrgb(175, 85, 225)
HSLhsl(279, 70%, 61%)
HSVhsv(279, 62%, 88%)
CMYKcmyk(22.2%, 62.2%, 0%, 11.8%)
CIE-LABlab(53.00, 59.30, -56.45)
CIE-LCHlch(53.00, 81.87, 316.41°)
OKLaboklab(62.04% 0.14 -0.1589)
OKLCHoklch(62.04% 0.212 311.4)
XYZxyz(34.5158, 21.0480, 73.4640)
Luminance0.2105 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF55E1 #87E155
analogous
#6955E1 #AF55E1 #E155CD
triadic
#AF55E1 #E1AF55 #55E1AF
tetradic
#AF55E1 #E16955 #87E155 #55CDE1
square
#AF55E1 #E16955 #87E155 #55CDE1
split-complementary
#AF55E1 #CDE155 #55E169
monochromatic
#711C9F #9525D3 #AF55E1 #C789EA #E0BDF3

Accessibility & contrast

On white

4.03
#AF55E1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#AF55E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF55E1
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF55E1#FFFFFF#000000##000000
##AF55E11.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#137AE5
Deuteranopia (green-blind)
#4880DE
Tritanopia (blue-blind)
#A97093
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #af55e1;
/* rgb */ color: rgb(175, 85, 225);
/* oklch */ color: oklch(62.0% 0.212 311.4);
Tailwind
colors: {
  custom: {
    50: '#ca8aeb',
    500: '#af55e1',
    950: '#000000',
  },
}
SCSS
$custom: #af55e1;
$custom-light: #ca8aeb;
$custom-dark: #000000;
JSON
{
  "hex": "#af55e1",
  "rgb": {
    "r": 175,
    "g": 85,
    "b": 225
  },
  "hsl": {
    "h": 278.571,
    "s": 70,
    "l": 60.784
  },
  "oklch": {
    "l": 0.62045,
    "c": 0.21183,
    "h": 311.4
  },
  "luminance": 0.21047
}

Semantic roles & 50–950 ramp

primary
#AF55E1
secondary
#C1E3AE
accent
#D21458
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF55E1

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

Preview Lab → · Contrast checker → · Palette generator →

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