#AF58E7#AF58E7

#AF58E7 is a light, highly saturated violet. Relative luminance 0.219; OKLCH L 62.8% C 0.214 H 309.6°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#AF58E7
RGBrgb(175, 88, 231)
HSLhsl(277, 75%, 63%)
HSVhsv(277, 62%, 91%)
CMYKcmyk(24.2%, 61.9%, 0%, 9.4%)
CIE-LABlab(53.88, 59.17, -58.42)
CIE-LCHlch(53.88, 83.15, 315.37°)
OKLaboklab(62.8% 0.1363 -0.1647)
OKLCHoklch(62.8% 0.214 309.6)
XYZxyz(35.5899, 21.8636, 77.9310)
Luminance0.2186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF58E7 #90E758
analogous
#6758E7 #AF58E7 #E758D8
triadic
#AF58E7 #E7AF58 #58E7AF
tetradic
#AF58E7 #E76758 #90E758 #58D8E7
square
#AF58E7 #E76758 #90E758 #58D8E7
split-complementary
#AF58E7 #D8E758 #58E767
monochromatic
#7219AC #9522DF #AF58E7 #C98EEF #E2C3F6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF58E7#FFFFFF#000000##000000
##AF58E71.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)
#0E7DEB
Deuteranopia (green-blind)
#4582E4
Tritanopia (blue-blind)
#A77498
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #af58e7;
/* rgb */ color: rgb(175, 88, 231);
/* oklch */ color: oklch(62.8% 0.214 309.6);
Tailwind
colors: {
  custom: {
    50: '#cb8cef',
    500: '#af58e7',
    950: '#000000',
  },
}
SCSS
$custom: #af58e7;
$custom-light: #cb8cef;
$custom-dark: #000000;
JSON
{
  "hex": "#af58e7",
  "rgb": {
    "r": 175,
    "g": 88,
    "b": 231
  },
  "hsl": {
    "h": 276.503,
    "s": 74.869,
    "l": 62.549
  },
  "oklch": {
    "l": 0.62798,
    "c": 0.21384,
    "h": 309.6
  },
  "luminance": 0.21863
}

Semantic roles & 50–950 ramp

primary
#AF58E7
secondary
#C8E7B3
accent
#D70E5D
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF58E7

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

Preview Lab → · Contrast checker → · Palette generator →

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