#AF57EF#AF57EF

#AF57EF is a light, highly saturated violet. Relative luminance 0.222; OKLCH L 63.2% C 0.223 H 307.9°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#AF57EF
RGBrgb(175, 87, 239)
HSLhsl(275, 83%, 64%)
HSVhsv(275, 64%, 94%)
CMYKcmyk(26.8%, 63.6%, 0%, 6.3%)
CIE-LABlab(54.20, 61.39, -62.39)
CIE-LCHlch(54.20, 87.53, 314.54°)
OKLaboklab(63.18% 0.1371 -0.1764)
OKLCHoklch(63.18% 0.223 307.9)
XYZxyz(36.6642, 22.1629, 83.9910)
Luminance0.2216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF57EF #97EF57
analogous
#6357EF #AF57EF #EF57E3
triadic
#AF57EF #EFAF57 #57EFAF
tetradic
#AF57EF #EF6357 #97EF57 #57E3EF
square
#AF57EF #EF6357 #97EF57 #57E3EF
split-complementary
#AF57EF #E3EF57 #57EF63
monochromatic
#7312BA #941FEA #AF57EF #CA8FF4 #E4C7FA

Accessibility & contrast

On white

3.87
#AF57EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#AF57EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF57EF
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF57EF#FFFFFF#000000##000000
##AF57EF1.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EF4
Deuteranopia (green-blind)
#3A82EC
Tritanopia (blue-blind)
#A5769C
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #af57ef;
/* rgb */ color: rgb(175, 87, 239);
/* oklch */ color: oklch(63.2% 0.223 307.9);
Tailwind
colors: {
  custom: {
    50: '#cb8bf5',
    500: '#af57ef',
    950: '#000000',
  },
}
SCSS
$custom: #af57ef;
$custom-light: #cb8bf5;
$custom-dark: #000000;
JSON
{
  "hex": "#af57ef",
  "rgb": {
    "r": 175,
    "g": 87,
    "b": 239
  },
  "hsl": {
    "h": 274.737,
    "s": 82.609,
    "l": 63.922
  },
  "oklch": {
    "l": 0.63184,
    "c": 0.22342,
    "h": 307.9
  },
  "luminance": 0.22162
}

Semantic roles & 50–950 ramp

primary
#AF57EF
secondary
#CDECB6
accent
#DF0662
background
#FCF8FF
surface
#F9F0FE
border
#D2CBD6
text
#140C17
muted
#827D85

Preview Lab

Preview with #AF57EF

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

Preview Lab → · Contrast checker → · Palette generator →

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