#AF55ED#AF55ED

#AF55ED is a light, highly saturated violet. Relative luminance 0.217; OKLCH L 62.8% C 0.224 H 308.5°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#AF55ED
RGBrgb(175, 85, 237)
HSLhsl(276, 81%, 63%)
HSVhsv(276, 64%, 93%)
CMYKcmyk(26.2%, 64.1%, 0%, 7.1%)
CIE-LABlab(53.74, 61.89, -62.02)
CIE-LCHlch(53.74, 87.61, 314.94°)
OKLaboklab(62.81% 0.1395 -0.1753)
OKLCHoklch(62.81% 0.224 308.5)
XYZxyz(36.2107, 21.7260, 82.3903)
Luminance0.2172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF55ED #93ED55
analogous
#6355ED #AF55ED #ED55DF
triadic
#AF55ED #EDAF55 #55EDAF
tetradic
#AF55ED #ED6355 #93ED55 #55DFED
square
#AF55ED #ED6355 #93ED55 #55DFED
split-complementary
#AF55ED #DFED55 #55ED63
monochromatic
#7313B4 #951EE7 #AF55ED #C98CF3 #E3C4F9

Accessibility & contrast

On white

3.93
#AF55ED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#AF55ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF55ED
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF55ED#FFFFFF#000000##000000
##AF55ED1.003.935.355.35
#FFFFFF3.931.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF2
Deuteranopia (green-blind)
#3A81EA
Tritanopia (blue-blind)
#A6749A
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #af55ed;
/* rgb */ color: rgb(175, 85, 237);
/* oklch */ color: oklch(62.8% 0.224 308.5);
Tailwind
colors: {
  custom: {
    50: '#cb8af4',
    500: '#af55ed',
    950: '#000000',
  },
}
SCSS
$custom: #af55ed;
$custom-light: #cb8af4;
$custom-dark: #000000;
JSON
{
  "hex": "#af55ed",
  "rgb": {
    "r": 175,
    "g": 85,
    "b": 237
  },
  "hsl": {
    "h": 275.526,
    "s": 80.851,
    "l": 63.137
  },
  "oklch": {
    "l": 0.62809,
    "c": 0.22401,
    "h": 308.5
  },
  "luminance": 0.21725
}

Semantic roles & 50–950 ramp

primary
#AF55ED
secondary
#CAEAB4
accent
#DD085F
background
#FCF8FF
surface
#F9F0FE
border
#D2CBD6
text
#140C17
muted
#827D85

Preview Lab

Preview with #AF55ED

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

Preview Lab → · Contrast checker → · Palette generator →

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