#AF57E4#AF57E4

#AF57E4 is a light, highly saturated violet. Relative luminance 0.215; OKLCH L 62.5% C 0.212 H 310.4°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#AF57E4
RGBrgb(175, 87, 228)
HSLhsl(277, 72%, 62%)
HSVhsv(277, 62%, 89%)
CMYKcmyk(23.2%, 61.8%, 0%, 10.6%)
CIE-LABlab(53.53, 59.00, -57.30)
CIE-LCHlch(53.53, 82.24, 315.84°)
OKLaboklab(62.48% 0.1376 -0.1614)
OKLCHoklch(62.48% 0.212 310.4)
XYZxyz(35.0883, 21.5325, 75.6915)
Luminance0.2153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF57E4 #8CE457
analogous
#6957E4 #AF57E4 #E457D3
triadic
#AF57E4 #E4AF57 #57E4AF
tetradic
#AF57E4 #E46957 #8CE457 #57D3E4
square
#AF57E4 #E46957 #8CE457 #57D3E4
split-complementary
#AF57E4 #D3E457 #57E469
monochromatic
#721BA6 #9623DB #AF57E4 #C88CEC #E1C0F5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF57E4#FFFFFF#000000##000000
##AF57E41.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)
#137CE8
Deuteranopia (green-blind)
#4781E1
Tritanopia (blue-blind)
#A87296
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #af57e4;
/* rgb */ color: rgb(175, 87, 228);
/* oklch */ color: oklch(62.5% 0.212 310.4);
Tailwind
colors: {
  custom: {
    50: '#cb8bed',
    500: '#af57e4',
    950: '#000000',
  },
}
SCSS
$custom: #af57e4;
$custom-light: #cb8bed;
$custom-dark: #000000;
JSON
{
  "hex": "#af57e4",
  "rgb": {
    "r": 175,
    "g": 87,
    "b": 228
  },
  "hsl": {
    "h": 277.447,
    "s": 72.308,
    "l": 61.765
  },
  "oklch": {
    "l": 0.62483,
    "c": 0.21213,
    "h": 310.4
  },
  "luminance": 0.21532
}

Semantic roles & 50–950 ramp

primary
#AF57E4
secondary
#C5E6B1
accent
#D4115B
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF57E4

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

Preview Lab → · Contrast checker → · Palette generator →

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