#AF58F5#AF58F5

#AF58F5 is a light, highly saturated violet. Relative luminance 0.227; OKLCH L 63.7% C 0.228 H 306.4°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#AF58F5
RGBrgb(175, 88, 245)
HSLhsl(273, 89%, 65%)
HSVhsv(273, 64%, 96%)
CMYKcmyk(28.6%, 64.1%, 0%, 3.9%)
CIE-LABlab(54.75, 62.25, -64.85)
CIE-LCHlch(54.75, 89.90, 313.83°)
OKLaboklab(63.7% 0.1356 -0.1836)
OKLCHoklch(63.7% 0.228 306.4)
XYZxyz(37.6468, 22.6864, 88.7641)
Luminance0.2269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF58F5 #9EF558
analogous
#6058F5 #AF58F5 #F558ED
triadic
#AF58F5 #F5AF58 #58F5AF
tetradic
#AF58F5 #F56058 #9EF558 #58EDF5
square
#AF58F5 #F56058 #9EF558 #58EDF5
split-complementary
#AF58F5 #EDF558 #58F560
monochromatic
#730CC7 #931EF2 #AF58F5 #CB92F8 #E6CBFC

Accessibility & contrast

On white

3.79
#AF58F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#AF58F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF58F5
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF58F5#FFFFFF#000000##000000
##AF58F51.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0080FA
Deuteranopia (green-blind)
#3384F2
Tritanopia (blue-blind)
#A3799F
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #af58f5;
/* rgb */ color: rgb(175, 88, 245);
/* oklch */ color: oklch(63.7% 0.228 306.4);
Tailwind
colors: {
  custom: {
    50: '#cb8cf9',
    500: '#af58f5',
    950: '#000000',
  },
}
SCSS
$custom: #af58f5;
$custom-light: #cb8cf9;
$custom-dark: #000000;
JSON
{
  "hex": "#af58f5",
  "rgb": {
    "r": 175,
    "g": 88,
    "b": 245
  },
  "hsl": {
    "h": 273.248,
    "s": 88.701,
    "l": 65.294
  },
  "oklch": {
    "l": 0.637,
    "c": 0.22828,
    "h": 306.4
  },
  "luminance": 0.22686
}

Semantic roles & 50–950 ramp

primary
#AF58F5
secondary
#D2EFBA
accent
#E50066
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C17
muted
#837D85

Preview Lab

Preview with #AF58F5

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

Preview Lab → · Contrast checker → · Palette generator →

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