#AF57FA#AF57FA

#AF57FA is a light, highly saturated violet. Relative luminance 0.228; OKLCH L 63.9% C 0.235 H 305.5°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#AF57FA
RGBrgb(175, 87, 250)
HSLhsl(272, 94%, 66%)
HSVhsv(272, 65%, 98%)
CMYKcmyk(30%, 65.2%, 0%, 2%)
CIE-LABlab(54.90, 63.83, -67.39)
CIE-LCHlch(54.90, 92.82, 313.45°)
OKLaboklab(63.91% 0.1363 -0.1911)
OKLCHoklch(63.91% 0.235 305.5)
XYZxyz(38.3389, 22.8328, 92.8114)
Luminance0.2283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF57FA #A2FA57
analogous
#5D57FA #AF57FA #FA57F3
triadic
#AF57FA #FAAF57 #57FAAF
tetradic
#AF57FA #FA5D57 #A2FA57 #57F3FA
square
#AF57FA #FA5D57 #A2FA57 #57F3FA
split-complementary
#AF57FA #F3FA57 #57FA5D
monochromatic
#7306D0 #931CF8 #AF57FA #CB92FC #E8CEFE

Accessibility & contrast

On white

3.77
#AF57FA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#AF57FA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF57FA
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF57FA#FFFFFF#000000##000000
##AF57FA1.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0081FF
Deuteranopia (green-blind)
#2884F6
Tritanopia (blue-blind)
#A27AA1
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #af57fa;
/* rgb */ color: rgb(175, 87, 250);
/* oklch */ color: oklch(63.9% 0.235 305.5);
Tailwind
colors: {
  custom: {
    50: '#cc8cfd',
    500: '#af57fa',
    950: '#000000',
  },
}
SCSS
$custom: #af57fa;
$custom-light: #cc8cfd;
$custom-dark: #000000;
JSON
{
  "hex": "#af57fa",
  "rgb": {
    "r": 175,
    "g": 87,
    "b": 250
  },
  "hsl": {
    "h": 272.393,
    "s": 94.22,
    "l": 66.078
  },
  "oklch": {
    "l": 0.63911,
    "c": 0.2347,
    "h": 305.5
  },
  "luminance": 0.22832
}

Semantic roles & 50–950 ramp

primary
#AF57FA
secondary
#D4F1BC
accent
#E6006A
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C18
muted
#837D86

Preview Lab

Preview with #AF57FA

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

Preview Lab → · Contrast checker → · Palette generator →

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