#AF57E9#AF57E9

#AF57E9 is a light, highly saturated violet. Relative luminance 0.218; OKLCH L 62.8% C 0.217 H 309.2°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#AF57E9
RGBrgb(175, 87, 233)
HSLhsl(276, 77%, 63%)
HSVhsv(276, 63%, 91%)
CMYKcmyk(24.9%, 62.7%, 0%, 8.6%)
CIE-LABlab(53.83, 60.08, -59.62)
CIE-LCHlch(53.83, 84.64, 315.22°)
OKLaboklab(62.8% 0.1374 -0.1683)
OKLCHoklch(62.8% 0.217 309.2)
XYZxyz(35.7925, 21.8142, 79.4000)
Luminance0.2181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF57E9 #91E957
analogous
#6657E9 #AF57E9 #E957DA
triadic
#AF57E9 #E9AF57 #57E9AF
tetradic
#AF57E9 #E96657 #91E957 #57DAE9
square
#AF57E9 #E96657 #91E957 #57DAE9
split-complementary
#AF57E9 #DAE957 #57E966
monochromatic
#7217AF #9521E2 #AF57E9 #C98DF0 #E3C3F7

Accessibility & contrast

On white

3.92
#AF57E9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#AF57E9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF57E9
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF57E9#FFFFFF#000000##000000
##AF57E91.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DEE
Deuteranopia (green-blind)
#4282E6
Tritanopia (blue-blind)
#A77498
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #af57e9;
/* rgb */ color: rgb(175, 87, 233);
/* oklch */ color: oklch(62.8% 0.217 309.2);
Tailwind
colors: {
  custom: {
    50: '#cb8bf1',
    500: '#af57e9',
    950: '#000000',
  },
}
SCSS
$custom: #af57e9;
$custom-light: #cb8bf1;
$custom-dark: #000000;
JSON
{
  "hex": "#af57e9",
  "rgb": {
    "r": 175,
    "g": 87,
    "b": 233
  },
  "hsl": {
    "h": 276.164,
    "s": 76.842,
    "l": 62.745
  },
  "oklch": {
    "l": 0.62798,
    "c": 0.21726,
    "h": 309.2
  },
  "luminance": 0.21814
}

Semantic roles & 50–950 ramp

primary
#AF57E9
secondary
#C8E8B3
accent
#D90C5E
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AF57E9

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

Preview Lab → · Contrast checker → · Palette generator →

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