#AF55EB#AF55EB

#AF55EB is a light, highly saturated violet. Relative luminance 0.216; OKLCH L 62.7% C 0.222 H 309.0°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#AF55EB
RGBrgb(175, 85, 235)
HSLhsl(276, 79%, 63%)
HSVhsv(276, 64%, 92%)
CMYKcmyk(25.5%, 63.8%, 0%, 7.8%)
CIE-LABlab(53.61, 61.45, -61.10)
CIE-LCHlch(53.61, 86.65, 315.17°)
OKLaboklab(62.68% 0.1396 -0.1726)
OKLCHoklch(62.68% 0.222 309)
XYZxyz(35.9201, 21.6097, 80.8600)
Luminance0.2161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF55EB #91EB55
analogous
#6455EB #AF55EB #EB55DC
triadic
#AF55EB #EBAF55 #55EBAF
tetradic
#AF55EB #EB6455 #91EB55 #55DCEB
square
#AF55EB #EB6455 #91EB55 #55DCEB
split-complementary
#AF55EB #DCEB55 #55EB64
monochromatic
#7215B1 #951EE5 #AF55EB #C98CF1 #E3C3F8

Accessibility & contrast

On white

3.95
#AF55EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#AF55EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF55EB
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF55EB#FFFFFF#000000##000000
##AF55EB1.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af55eb;
/* rgb */ color: rgb(175, 85, 235);
/* oklch */ color: oklch(62.7% 0.222 309.0);
Tailwind
colors: {
  custom: {
    50: '#cb8af2',
    500: '#af55eb',
    950: '#000000',
  },
}
SCSS
$custom: #af55eb;
$custom-light: #cb8af2;
$custom-dark: #000000;
JSON
{
  "hex": "#af55eb",
  "rgb": {
    "r": 175,
    "g": 85,
    "b": 235
  },
  "hsl": {
    "h": 276,
    "s": 78.947,
    "l": 62.745
  },
  "oklch": {
    "l": 0.6268,
    "c": 0.22197,
    "h": 309
  },
  "luminance": 0.21609
}

Semantic roles & 50–950 ramp

primary
#AF55EB
secondary
#C8E9B3
accent
#DB0A5E
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AF55EB

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

Preview Lab → · Contrast checker → · Palette generator →

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