#AF58EA#AF58EA

#AF58EA is a light, highly saturated violet. Relative luminance 0.220; OKLCH L 63.0% C 0.217 H 308.9°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#AF58EA
RGBrgb(175, 88, 234)
HSLhsl(276, 78%, 63%)
HSVhsv(276, 62%, 92%)
CMYKcmyk(25.2%, 62.4%, 0%, 8.2%)
CIE-LABlab(54.06, 59.82, -59.81)
CIE-LCHlch(54.06, 84.59, 315.01°)
OKLaboklab(62.99% 0.1362 -0.1688)
OKLCHoklch(62.99% 0.217 308.9)
XYZxyz(36.0172, 22.0345, 80.1817)
Luminance0.2203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF58EA #93EA58
analogous
#6658EA #AF58EA #EA58DC
triadic
#AF58EA #EAAF58 #58EAAF
tetradic
#AF58EA #EA6658 #93EA58 #58DCEA
square
#AF58EA #EA6658 #93EA58 #58DCEA
split-complementary
#AF58EA #DCEA58 #58EA66
monochromatic
#7316B1 #9522E3 #AF58EA #C98EF1 #E3C5F8

Accessibility & contrast

On white

3.88
#AF58EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.41
#AF58EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF58EA
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF58EA#FFFFFF#000000##000000
##AF58EA1.003.885.415.41
#FFFFFF3.881.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EEF
Deuteranopia (green-blind)
#4282E7
Tritanopia (blue-blind)
#A67599
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #af58ea;
/* rgb */ color: rgb(175, 88, 234);
/* oklch */ color: oklch(63.0% 0.217 308.9);
Tailwind
colors: {
  custom: {
    50: '#cb8cf1',
    500: '#af58ea',
    950: '#000000',
  },
}
SCSS
$custom: #af58ea;
$custom-light: #cb8cf1;
$custom-dark: #000000;
JSON
{
  "hex": "#af58ea",
  "rgb": {
    "r": 175,
    "g": 88,
    "b": 234
  },
  "hsl": {
    "h": 275.753,
    "s": 77.66,
    "l": 63.137
  },
  "oklch": {
    "l": 0.62987,
    "c": 0.21694,
    "h": 308.9
  },
  "luminance": 0.22034
}

Semantic roles & 50–950 ramp

primary
#AF58EA
secondary
#CAE9B5
accent
#DA0C5F
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AF58EA

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

Preview Lab → · Contrast checker → · Palette generator →

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