#AF58EB#AF58EB

#AF58EB is a light, highly saturated violet. Relative luminance 0.221; OKLCH L 63.1% C 0.218 H 308.7°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#AF58EB
RGBrgb(175, 88, 235)
HSLhsl(276, 79%, 63%)
HSVhsv(276, 63%, 92%)
CMYKcmyk(25.5%, 62.6%, 0%, 7.8%)
CIE-LABlab(54.12, 60.04, -60.27)
CIE-LCHlch(54.12, 85.07, 314.89°)
OKLaboklab(63.05% 0.1362 -0.1702)
OKLCHoklch(63.05% 0.218 308.7)
XYZxyz(36.1613, 22.0921, 80.9404)
Luminance0.2209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF58EB #94EB58
analogous
#6558EB #AF58EB #EB58DE
triadic
#AF58EB #EBAF58 #58EBAF
tetradic
#AF58EB #EB6558 #94EB58 #58DEEB
square
#AF58EB #EB6558 #94EB58 #58DEEB
split-complementary
#AF58EB #DEEB58 #58EB65
monochromatic
#7315B3 #9521E4 #AF58EB #C98FF2 #E3C5F8

Accessibility & contrast

On white

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

On black

5.42
#AF58EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF58EB
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF58EB#FFFFFF#000000##000000
##AF58EB1.003.885.425.42
#FFFFFF3.881.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EF0
Deuteranopia (green-blind)
#4182E8
Tritanopia (blue-blind)
#A6769A
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #af58eb;
/* rgb */ color: rgb(175, 88, 235);
/* oklch */ color: oklch(63.1% 0.218 308.7);
Tailwind
colors: {
  custom: {
    50: '#cb8cf2',
    500: '#af58eb',
    950: '#000000',
  },
}
SCSS
$custom: #af58eb;
$custom-light: #cb8cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#af58eb",
  "rgb": {
    "r": 175,
    "g": 88,
    "b": 235
  },
  "hsl": {
    "h": 275.51,
    "s": 78.61,
    "l": 63.333
  },
  "oklch": {
    "l": 0.63051,
    "c": 0.21797,
    "h": 308.7
  },
  "luminance": 0.22092
}

Semantic roles & 50–950 ramp

primary
#AF58EB
secondary
#CBEAB5
accent
#DB0B60
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AF58EB

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

Preview Lab → · Contrast checker → · Palette generator →

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