#AF57EB#AF57EB

#AF57EB is a light, highly saturated violet. Relative luminance 0.219; OKLCH L 62.9% C 0.219 H 308.8°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#AF57EB
RGBrgb(175, 87, 235)
HSLhsl(276, 79%, 63%)
HSVhsv(276, 63%, 92%)
CMYKcmyk(25.5%, 63%, 0%, 7.8%)
CIE-LABlab(53.95, 60.51, -60.55)
CIE-LCHlch(53.95, 85.60, 314.98°)
OKLaboklab(62.93% 0.1373 -0.171)
OKLCHoklch(62.93% 0.219 308.8)
XYZxyz(36.0798, 21.9291, 80.9132)
Luminance0.2193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF57EB #93EB57
analogous
#6557EB #AF57EB #EB57DD
triadic
#AF57EB #EBAF57 #57EBAF
tetradic
#AF57EB #EB6557 #93EB57 #57DDEB
square
#AF57EB #EB6557 #93EB57 #57DDEB
split-complementary
#AF57EB #DDEB57 #57EB65
monochromatic
#7315B2 #9520E4 #AF57EB #C98EF2 #E3C4F8

Accessibility & contrast

On white

3.90
#AF57EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.39
#AF57EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF57EB
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF57EB#FFFFFF#000000##000000
##AF57EB1.003.905.395.39
#FFFFFF3.901.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF0
Deuteranopia (green-blind)
#3F82E8
Tritanopia (blue-blind)
#A67599
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #af57eb;
/* rgb */ color: rgb(175, 87, 235);
/* oklch */ color: oklch(62.9% 0.219 308.8);
Tailwind
colors: {
  custom: {
    50: '#cb8bf2',
    500: '#af57eb',
    950: '#000000',
  },
}
SCSS
$custom: #af57eb;
$custom-light: #cb8bf2;
$custom-dark: #000000;
JSON
{
  "hex": "#af57eb",
  "rgb": {
    "r": 175,
    "g": 87,
    "b": 235
  },
  "hsl": {
    "h": 275.676,
    "s": 78.723,
    "l": 63.137
  },
  "oklch": {
    "l": 0.62926,
    "c": 0.21931,
    "h": 308.8
  },
  "luminance": 0.21929
}

Semantic roles & 50–950 ramp

primary
#AF57EB
secondary
#CAE9B4
accent
#DB0A5F
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AF57EB

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

Preview Lab → · Contrast checker → · Palette generator →

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