#AF57E8#AF57E8

#AF57E8 is a light, highly saturated violet. Relative luminance 0.218; OKLCH L 62.7% C 0.216 H 309.5°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#AF57E8
RGBrgb(175, 87, 232)
HSLhsl(276, 76%, 63%)
HSVhsv(276, 63%, 91%)
CMYKcmyk(24.6%, 62.5%, 0%, 9%)
CIE-LABlab(53.77, 59.86, -59.16)
CIE-LCHlch(53.77, 84.16, 315.34°)
OKLaboklab(62.74% 0.1375 -0.1669)
OKLCHoklch(62.74% 0.216 309.5)
XYZxyz(35.6500, 21.7572, 78.6498)
Luminance0.2176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF57E8 #90E857
analogous
#6757E8 #AF57E8 #E857D8
triadic
#AF57E8 #E8AF57 #57E8AF
tetradic
#AF57E8 #E86757 #90E857 #57D8E8
square
#AF57E8 #E86757 #90E857 #57D8E8
split-complementary
#AF57E8 #D8E857 #57E867
monochromatic
#7218AD #9521E1 #AF57E8 #C98DEF #E2C3F7

Accessibility & contrast

On white

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

On black

5.35
#AF57E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF57E8
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF57E8#FFFFFF#000000##000000
##AF57E81.003.925.355.35
#FFFFFF3.921.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#017DEC
Deuteranopia (green-blind)
#4382E5
Tritanopia (blue-blind)
#A77498
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #af57e8;
/* rgb */ color: rgb(175, 87, 232);
/* oklch */ color: oklch(62.7% 0.216 309.5);
Tailwind
colors: {
  custom: {
    50: '#cb8bf0',
    500: '#af57e8',
    950: '#000000',
  },
}
SCSS
$custom: #af57e8;
$custom-light: #cb8bf0;
$custom-dark: #000000;
JSON
{
  "hex": "#af57e8",
  "rgb": {
    "r": 175,
    "g": 87,
    "b": 232
  },
  "hsl": {
    "h": 276.414,
    "s": 75.916,
    "l": 62.549
  },
  "oklch": {
    "l": 0.62735,
    "c": 0.21624,
    "h": 309.5
  },
  "luminance": 0.21757
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF57E8

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

Preview Lab → · Contrast checker → · Palette generator →

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