#AF57FB#AF57FB

#AF57FB is a light, highly saturated violet. Relative luminance 0.229; OKLCH L 64.0% C 0.236 H 305.3°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#AF57FB
RGBrgb(175, 87, 251)
HSLhsl(272, 95%, 66%)
HSVhsv(272, 65%, 98%)
CMYKcmyk(30.3%, 65.3%, 0%, 1.6%)
CIE-LABlab(54.96, 64.06, -67.84)
CIE-LCHlch(54.96, 93.30, 313.36°)
OKLaboklab(63.98% 0.1362 -0.1924)
OKLCHoklch(63.98% 0.236 305.3)
XYZxyz(38.4961, 22.8956, 93.6393)
Luminance0.2289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF57FB #A3FB57
analogous
#5D57FB #AF57FB #FB57F5
triadic
#AF57FB #FBAF57 #57FBAF
tetradic
#AF57FB #FB5D57 #A3FB57 #57F5FB
square
#AF57FB #FB5D57 #A3FB57 #57F5FB
split-complementary
#AF57FB #F5FB57 #57FB5D
monochromatic
#7305D3 #931BFA #AF57FB #CB93FC #E8CFFE

Accessibility & contrast

On white

3.76
#AF57FB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#AF57FB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF57FB
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF57FB#FFFFFF#000000##000000
##AF57FB1.003.765.585.58
#FFFFFF3.761.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0081FF
Deuteranopia (green-blind)
#2684F7
Tritanopia (blue-blind)
#A17BA2
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #af57fb;
/* rgb */ color: rgb(175, 87, 251);
/* oklch */ color: oklch(64.0% 0.236 305.3);
Tailwind
colors: {
  custom: {
    50: '#cc8cfe',
    500: '#af57fb',
    950: '#000000',
  },
}
SCSS
$custom: #af57fb;
$custom-light: #cc8cfe;
$custom-dark: #000000;
JSON
{
  "hex": "#af57fb",
  "rgb": {
    "r": 175,
    "g": 87,
    "b": 251
  },
  "hsl": {
    "h": 272.195,
    "s": 95.349,
    "l": 66.275
  },
  "oklch": {
    "l": 0.63978,
    "c": 0.23572,
    "h": 305.3
  },
  "luminance": 0.22895
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF57FB

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

Preview Lab → · Contrast checker → · Palette generator →

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