#AF57E6#AF57E6

#AF57E6 is a light, highly saturated violet. Relative luminance 0.216; OKLCH L 62.6% C 0.214 H 310.0°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#AF57E6
RGBrgb(175, 87, 230)
HSLhsl(277, 74%, 62%)
HSVhsv(277, 62%, 90%)
CMYKcmyk(23.9%, 62.2%, 0%, 9.8%)
CIE-LABlab(53.65, 59.43, -58.23)
CIE-LCHlch(53.65, 83.20, 315.58°)
OKLaboklab(62.61% 0.1375 -0.1642)
OKLCHoklch(62.61% 0.214 310)
XYZxyz(35.3676, 21.6442, 77.1622)
Luminance0.2164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF57E6 #8EE657
analogous
#6857E6 #AF57E6 #E657D6
triadic
#AF57E6 #E6AF57 #57E6AF
tetradic
#AF57E6 #E66857 #8EE657 #57D6E6
square
#AF57E6 #E66857 #8EE657 #57D6E6
split-complementary
#AF57E6 #D6E657 #57E668
monochromatic
#7219A9 #9622DE #AF57E6 #C88CEE #E2C2F6

Accessibility & contrast

On white

3.94
#AF57E6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#AF57E6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF57E6
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF57E6#FFFFFF#000000##000000
##AF57E61.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0B7CEA
Deuteranopia (green-blind)
#4582E3
Tritanopia (blue-blind)
#A87397
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #af57e6;
/* rgb */ color: rgb(175, 87, 230);
/* oklch */ color: oklch(62.6% 0.214 310.0);
Tailwind
colors: {
  custom: {
    50: '#cb8bef',
    500: '#af57e6',
    950: '#000000',
  },
}
SCSS
$custom: #af57e6;
$custom-light: #cb8bef;
$custom-dark: #000000;
JSON
{
  "hex": "#af57e6",
  "rgb": {
    "r": 175,
    "g": 87,
    "b": 230
  },
  "hsl": {
    "h": 276.923,
    "s": 74.093,
    "l": 62.157
  },
  "oklch": {
    "l": 0.62608,
    "c": 0.21419,
    "h": 310
  },
  "luminance": 0.21644
}

Semantic roles & 50–950 ramp

primary
#AF57E6
secondary
#C6E7B2
accent
#D60F5C
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF57E6

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

Preview Lab → · Contrast checker → · Palette generator →

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