#AF57ED#AF57ED

#AF57ED is a light, highly saturated violet. Relative luminance 0.220; OKLCH L 63.1% C 0.221 H 308.3°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#AF57ED
RGBrgb(175, 87, 237)
HSLhsl(275, 81%, 64%)
HSVhsv(275, 63%, 93%)
CMYKcmyk(26.2%, 63.3%, 0%, 7.1%)
CIE-LABlab(54.08, 60.95, -61.47)
CIE-LCHlch(54.08, 86.57, 314.76°)
OKLaboklab(63.05% 0.1372 -0.1737)
OKLCHoklch(63.05% 0.221 308.3)
XYZxyz(36.3703, 22.0453, 82.4435)
Luminance0.2205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF57ED #95ED57
analogous
#6457ED #AF57ED #ED57E0
triadic
#AF57ED #EDAF57 #57EDAF
tetradic
#AF57ED #ED6457 #95ED57 #57E0ED
square
#AF57ED #ED6457 #95ED57 #57E0ED
split-complementary
#AF57ED #E0ED57 #57ED64
monochromatic
#7314B6 #9520E7 #AF57ED #C98EF3 #E4C6F9

Accessibility & contrast

On white

3.88
#AF57ED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.41
#AF57ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF57ED
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF57ED#FFFFFF#000000##000000
##AF57ED1.003.885.415.41
#FFFFFF3.881.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EF2
Deuteranopia (green-blind)
#3D82EA
Tritanopia (blue-blind)
#A6769A
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #af57ed;
/* rgb */ color: rgb(175, 87, 237);
/* oklch */ color: oklch(63.1% 0.221 308.3);
Tailwind
colors: {
  custom: {
    50: '#cb8bf4',
    500: '#af57ed',
    950: '#000000',
  },
}
SCSS
$custom: #af57ed;
$custom-light: #cb8bf4;
$custom-dark: #000000;
JSON
{
  "hex": "#af57ed",
  "rgb": {
    "r": 175,
    "g": 87,
    "b": 237
  },
  "hsl": {
    "h": 275.2,
    "s": 80.645,
    "l": 63.529
  },
  "oklch": {
    "l": 0.63054,
    "c": 0.22136,
    "h": 308.3
  },
  "luminance": 0.22045
}

Semantic roles & 50–950 ramp

primary
#AF57ED
secondary
#CBEAB5
accent
#DD0960
background
#FCF8FF
surface
#F9F0FE
border
#D2CBD6
text
#140C17
muted
#827D85

Preview Lab

Preview with #AF57ED

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

Preview Lab → · Contrast checker → · Palette generator →

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