#AF55EC#AF55EC

#AF55EC is a light, highly saturated violet. Relative luminance 0.217; OKLCH L 62.7% C 0.223 H 308.7°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#AF55EC
RGBrgb(175, 85, 236)
HSLhsl(276, 80%, 63%)
HSVhsv(276, 64%, 93%)
CMYKcmyk(25.8%, 64%, 0%, 7.5%)
CIE-LABlab(53.67, 61.67, -61.56)
CIE-LCHlch(53.67, 87.13, 315.05°)
OKLaboklab(62.74% 0.1395 -0.1739)
OKLCHoklch(62.74% 0.223 308.7)
XYZxyz(36.0650, 21.6677, 81.6230)
Luminance0.2167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF55EC #92EC55
analogous
#6455EC #AF55EC #EC55DD
triadic
#AF55EC #ECAF55 #55ECAF
tetradic
#AF55EC #EC6455 #92EC55 #55DDEC
square
#AF55EC #EC6455 #92EC55 #55DDEC
split-complementary
#AF55EC #DDEC55 #55EC64
monochromatic
#7314B3 #951EE6 #AF55EC #C98CF2 #E3C3F8

Accessibility & contrast

On white

3.94
#AF55EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#AF55EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF55EC
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF55EC#FFFFFF#000000##000000
##AF55EC1.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF1
Deuteranopia (green-blind)
#3B81E9
Tritanopia (blue-blind)
#A67499
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #af55ec;
/* rgb */ color: rgb(175, 85, 236);
/* oklch */ color: oklch(62.7% 0.223 308.7);
Tailwind
colors: {
  custom: {
    50: '#cb8af3',
    500: '#af55ec',
    950: '#000000',
  },
}
SCSS
$custom: #af55ec;
$custom-light: #cb8af3;
$custom-dark: #000000;
JSON
{
  "hex": "#af55ec",
  "rgb": {
    "r": 175,
    "g": 85,
    "b": 236
  },
  "hsl": {
    "h": 275.762,
    "s": 79.894,
    "l": 62.941
  },
  "oklch": {
    "l": 0.62744,
    "c": 0.223,
    "h": 308.7
  },
  "luminance": 0.21667
}

Semantic roles & 50–950 ramp

primary
#AF55EC
secondary
#C9EAB3
accent
#DC095E
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AF55EC

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

Preview Lab → · Contrast checker → · Palette generator →

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