#AF57E7#AF57E7

#AF57E7 is a light, highly saturated violet. Relative luminance 0.217; OKLCH L 62.7% C 0.215 H 309.7°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#AF57E7
RGBrgb(175, 87, 231)
HSLhsl(277, 75%, 62%)
HSVhsv(277, 62%, 91%)
CMYKcmyk(24.2%, 62.3%, 0%, 9.4%)
CIE-LABlab(53.71, 59.64, -58.69)
CIE-LCHlch(53.71, 83.68, 315.46°)
OKLaboklab(62.67% 0.1375 -0.1656)
OKLCHoklch(62.67% 0.215 309.7)
XYZxyz(35.5084, 21.7005, 77.9039)
Luminance0.2170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF57E7 #8FE757
analogous
#6757E7 #AF57E7 #E757D7
triadic
#AF57E7 #E7AF57 #57E7AF
tetradic
#AF57E7 #E76757 #8FE757 #57D7E7
square
#AF57E7 #E76757 #8FE757 #57D7E7
split-complementary
#AF57E7 #D7E757 #57E767
monochromatic
#7218AB #9621DF #AF57E7 #C98DEF #E2C2F6

Accessibility & contrast

On white

3.93
#AF57E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#AF57E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF57E7
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF57E7#FFFFFF#000000##000000
##AF57E71.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#067CEB
Deuteranopia (green-blind)
#4482E4
Tritanopia (blue-blind)
#A77497
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #af57e7;
/* rgb */ color: rgb(175, 87, 231);
/* oklch */ color: oklch(62.7% 0.215 309.7);
Tailwind
colors: {
  custom: {
    50: '#cb8bef',
    500: '#af57e7',
    950: '#000000',
  },
}
SCSS
$custom: #af57e7;
$custom-light: #cb8bef;
$custom-dark: #000000;
JSON
{
  "hex": "#af57e7",
  "rgb": {
    "r": 175,
    "g": 87,
    "b": 231
  },
  "hsl": {
    "h": 276.667,
    "s": 75,
    "l": 62.353
  },
  "oklch": {
    "l": 0.62671,
    "c": 0.21521,
    "h": 309.7
  },
  "luminance": 0.217
}

Semantic roles & 50–950 ramp

primary
#AF57E7
secondary
#C7E7B3
accent
#D70E5C
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF57E7

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

Preview Lab → · Contrast checker → · Palette generator →

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