#AF58EC#AF58EC

#AF58EC is a light, highly saturated violet. Relative luminance 0.222; OKLCH L 63.1% C 0.219 H 308.4°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#AF58EC
RGBrgb(175, 88, 236)
HSLhsl(275, 80%, 64%)
HSVhsv(275, 63%, 93%)
CMYKcmyk(25.8%, 62.7%, 0%, 7.5%)
CIE-LABlab(54.19, 60.26, -60.73)
CIE-LCHlch(54.19, 85.56, 314.78°)
OKLaboklab(63.12% 0.1361 -0.1715)
OKLCHoklch(63.12% 0.219 308.4)
XYZxyz(36.3062, 22.1501, 81.7034)
Luminance0.2215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF58EC #95EC58
analogous
#6558EC #AF58EC #EC58DF
triadic
#AF58EC #ECAF58 #58ECAF
tetradic
#AF58EC #EC6558 #95EC58 #58DFEC
square
#AF58EC #EC6558 #95EC58 #58DFEC
split-complementary
#AF58EC #DFEC58 #58EC65
monochromatic
#7315B5 #9521E6 #AF58EC #C98FF2 #E4C6F9

Accessibility & contrast

On white

3.87
#AF58EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#AF58EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF58EC
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF58EC#FFFFFF#000000##000000
##AF58EC1.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EF1
Deuteranopia (green-blind)
#3F83E9
Tritanopia (blue-blind)
#A6769A
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #af58ec;
/* rgb */ color: rgb(175, 88, 236);
/* oklch */ color: oklch(63.1% 0.219 308.4);
Tailwind
colors: {
  custom: {
    50: '#cb8cf3',
    500: '#af58ec',
    950: '#000000',
  },
}
SCSS
$custom: #af58ec;
$custom-light: #cb8cf3;
$custom-dark: #000000;
JSON
{
  "hex": "#af58ec",
  "rgb": {
    "r": 175,
    "g": 88,
    "b": 236
  },
  "hsl": {
    "h": 275.27,
    "s": 79.57,
    "l": 63.529
  },
  "oklch": {
    "l": 0.63115,
    "c": 0.219,
    "h": 308.4
  },
  "luminance": 0.2215
}

Semantic roles & 50–950 ramp

primary
#AF58EC
secondary
#CBEAB6
accent
#DC0A60
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AF58EC

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

Preview Lab → · Contrast checker → · Palette generator →

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