#AF58E9#AF58E9

#AF58E9 is a light, highly saturated violet. Relative luminance 0.220; OKLCH L 62.9% C 0.216 H 309.1°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#AF58E9
RGBrgb(175, 88, 233)
HSLhsl(276, 77%, 63%)
HSVhsv(276, 62%, 91%)
CMYKcmyk(24.9%, 62.2%, 0%, 8.6%)
CIE-LABlab(54.00, 59.60, -59.34)
CIE-LCHlch(54.00, 84.11, 315.13°)
OKLaboklab(62.92% 0.1363 -0.1675)
OKLCHoklch(62.92% 0.216 309.1)
XYZxyz(35.8740, 21.9772, 79.4272)
Luminance0.2198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF58E9 #92E958
analogous
#6658E9 #AF58E9 #E958DB
triadic
#AF58E9 #E9AF58 #58E9AF
tetradic
#AF58E9 #E96658 #92E958 #58DBE9
square
#AF58E9 #E96658 #92E958 #58DBE9
split-complementary
#AF58E9 #DBE958 #58E966
monochromatic
#7317AF #9522E2 #AF58E9 #C98EF0 #E3C4F7

Accessibility & contrast

On white

3.89
#AF58E9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#AF58E9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF58E9
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF58E9#FFFFFF#000000##000000
##AF58E91.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#047DED
Deuteranopia (green-blind)
#4382E6
Tritanopia (blue-blind)
#A77599
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #af58e9;
/* rgb */ color: rgb(175, 88, 233);
/* oklch */ color: oklch(62.9% 0.216 309.1);
Tailwind
colors: {
  custom: {
    50: '#cb8cf1',
    500: '#af58e9',
    950: '#000000',
  },
}
SCSS
$custom: #af58e9;
$custom-light: #cb8cf1;
$custom-dark: #000000;
JSON
{
  "hex": "#af58e9",
  "rgb": {
    "r": 175,
    "g": 88,
    "b": 233
  },
  "hsl": {
    "h": 276,
    "s": 76.72,
    "l": 62.941
  },
  "oklch": {
    "l": 0.62924,
    "c": 0.21591,
    "h": 309.1
  },
  "luminance": 0.21977
}

Semantic roles & 50–950 ramp

primary
#AF58E9
secondary
#C9E8B4
accent
#D90D5E
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AF58E9

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

Preview Lab → · Contrast checker → · Palette generator →

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