#AF57F2#AF57F2

#AF57F2 is a light, highly saturated violet. Relative luminance 0.223; OKLCH L 63.4% C 0.226 H 307.2°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#AF57F2
RGBrgb(175, 87, 242)
HSLhsl(274, 86%, 65%)
HSVhsv(274, 64%, 95%)
CMYKcmyk(27.7%, 64%, 0%, 5.1%)
CIE-LABlab(54.39, 62.05, -63.76)
CIE-LCHlch(54.39, 88.97, 314.22°)
OKLaboklab(63.38% 0.1369 -0.1804)
OKLCHoklch(63.38% 0.226 307.2)
XYZxyz(37.1110, 22.3416, 86.3445)
Luminance0.2234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF57F2 #9AF257
analogous
#6257F2 #AF57F2 #F257E7
triadic
#AF57F2 #F2AF57 #57F2AF
tetradic
#AF57F2 #F26257 #9AF257 #57E7F2
square
#AF57F2 #F26257 #9AF257 #57E7F2
split-complementary
#AF57F2 #E7F257 #57F262
monochromatic
#730FC0 #941EEE #AF57F2 #CA90F6 #E5C9FB

Accessibility & contrast

On white

3.84
#AF57F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#AF57F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF57F2
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF57F2#FFFFFF#000000##000000
##AF57F21.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FF7
Deuteranopia (green-blind)
#3683EF
Tritanopia (blue-blind)
#A4789D
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #af57f2;
/* rgb */ color: rgb(175, 87, 242);
/* oklch */ color: oklch(63.4% 0.226 307.2);
Tailwind
colors: {
  custom: {
    50: '#cb8bf7',
    500: '#af57f2',
    950: '#000000',
  },
}
SCSS
$custom: #af57f2;
$custom-light: #cb8bf7;
$custom-dark: #000000;
JSON
{
  "hex": "#af57f2",
  "rgb": {
    "r": 175,
    "g": 87,
    "b": 242
  },
  "hsl": {
    "h": 274.065,
    "s": 85.635,
    "l": 64.51
  },
  "oklch": {
    "l": 0.6338,
    "c": 0.22649,
    "h": 307.2
  },
  "luminance": 0.22341
}

Semantic roles & 50–950 ramp

primary
#AF57F2
secondary
#CFEDB8
accent
#E20364
background
#FCF8FF
surface
#F9F0FF
border
#D2CBD7
text
#140C17
muted
#827D85

Preview Lab

Preview with #AF57F2

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

Preview Lab → · Contrast checker → · Palette generator →

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