#AF55EF#AF55EF

#AF55EF is a light, highly saturated violet. Relative luminance 0.218; OKLCH L 62.9% C 0.226 H 308.1°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#AF55EF
RGBrgb(175, 85, 239)
HSLhsl(275, 83%, 64%)
HSVhsv(275, 64%, 94%)
CMYKcmyk(26.8%, 64.4%, 0%, 6.3%)
CIE-LABlab(53.86, 62.32, -62.94)
CIE-LCHlch(53.86, 88.57, 314.72°)
OKLaboklab(62.94% 0.1393 -0.178)
OKLCHoklch(62.94% 0.226 308.1)
XYZxyz(36.5045, 21.8435, 83.9378)
Luminance0.2184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF55EF #95EF55
analogous
#6255EF #AF55EF #EF55E2
triadic
#AF55EF #EFAF55 #55EFAF
tetradic
#AF55EF #EF6255 #95EF55 #55E2EF
square
#AF55EF #EF6255 #95EF55 #55E2EF
split-complementary
#AF55EF #E2EF55 #55EF62
monochromatic
#7311B8 #951DEA #AF55EF #C98DF4 #E4C5FA

Accessibility & contrast

On white

3.91
#AF55EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#AF55EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF55EF
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF55EF#FFFFFF#000000##000000
##AF55EF1.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF4
Deuteranopia (green-blind)
#3882EC
Tritanopia (blue-blind)
#A5759B
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #af55ef;
/* rgb */ color: rgb(175, 85, 239);
/* oklch */ color: oklch(62.9% 0.226 308.1);
Tailwind
colors: {
  custom: {
    50: '#cb8af5',
    500: '#af55ef',
    950: '#000000',
  },
}
SCSS
$custom: #af55ef;
$custom-light: #cb8af5;
$custom-dark: #000000;
JSON
{
  "hex": "#af55ef",
  "rgb": {
    "r": 175,
    "g": 85,
    "b": 239
  },
  "hsl": {
    "h": 275.065,
    "s": 82.796,
    "l": 63.529
  },
  "oklch": {
    "l": 0.6294,
    "c": 0.22604,
    "h": 308.1
  },
  "luminance": 0.21843
}

Semantic roles & 50–950 ramp

primary
#AF55EF
secondary
#CBEBB5
accent
#DF0660
background
#FCF8FF
surface
#F9F0FE
border
#D2CBD6
text
#140C17
muted
#827D85

Preview Lab

Preview with #AF55EF

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

Preview Lab → · Contrast checker → · Palette generator →

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