#AF58ED#AF58ED

#AF58ED is a light, highly saturated violet. Relative luminance 0.222; OKLCH L 63.2% C 0.220 H 308.2°. Best body text is #000000 at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#AF58ED
RGBrgb(175, 88, 237)
HSLhsl(275, 81%, 64%)
HSVhsv(275, 63%, 93%)
CMYKcmyk(26.2%, 62.9%, 0%, 7.1%)
CIE-LABlab(54.25, 60.48, -61.19)
CIE-LCHlch(54.25, 86.04, 314.66°)
OKLaboklab(63.18% 0.1361 -0.1729)
OKLCHoklch(63.18% 0.22 308.2)
XYZxyz(36.4519, 22.2084, 82.4707)
Luminance0.2221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF58ED #96ED58
analogous
#6458ED #AF58ED #ED58E0
triadic
#AF58ED #EDAF58 #58EDAF
tetradic
#AF58ED #ED6458 #96ED58 #58E0ED
square
#AF58ED #ED6458 #96ED58 #58E0ED
split-complementary
#AF58ED #E0ED58 #58ED64
monochromatic
#7314B7 #9521E7 #AF58ED #C98FF3 #E4C6F9

Accessibility & contrast

On white

3.86
#AF58ED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.44
#AF58ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF58ED
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF58ED#FFFFFF#000000##000000
##AF58ED1.003.865.445.44
#FFFFFF3.861.0021.0021.00
#0000005.4421.001.001.00
##0000005.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EF2
Deuteranopia (green-blind)
#3E83EA
Tritanopia (blue-blind)
#A6769B
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #af58ed;
/* rgb */ color: rgb(175, 88, 237);
/* oklch */ color: oklch(63.2% 0.220 308.2);
Tailwind
colors: {
  custom: {
    50: '#cb8cf4',
    500: '#af58ed',
    950: '#000000',
  },
}
SCSS
$custom: #af58ed;
$custom-light: #cb8cf4;
$custom-dark: #000000;
JSON
{
  "hex": "#af58ed",
  "rgb": {
    "r": 175,
    "g": 88,
    "b": 237
  },
  "hsl": {
    "h": 275.034,
    "s": 80.541,
    "l": 63.725
  },
  "oklch": {
    "l": 0.63179,
    "c": 0.22003,
    "h": 308.2
  },
  "luminance": 0.22208
}

Semantic roles & 50–950 ramp

primary
#AF58ED
secondary
#CCEBB6
accent
#DD0961
background
#FCF8FF
surface
#F9F0FE
border
#D2CBD6
text
#140C17
muted
#827D85

Preview Lab

Preview with #AF58ED

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

Preview Lab → · Contrast checker → · Palette generator →

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