#AF58F6#AF58F6

#AF58F6 is a light, highly saturated violet. Relative luminance 0.227; OKLCH L 63.8% C 0.229 H 306.2°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#AF58F6
RGBrgb(175, 88, 246)
HSLhsl(273, 90%, 65%)
HSVhsv(273, 64%, 96%)
CMYKcmyk(28.9%, 64.2%, 0%, 3.5%)
CIE-LABlab(54.81, 62.47, -65.31)
CIE-LCHlch(54.81, 90.38, 313.73°)
OKLaboklab(63.77% 0.1355 -0.185)
OKLCHoklch(63.77% 0.229 306.2)
XYZxyz(37.7999, 22.7476, 89.5703)
Luminance0.2275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF58F6 #9FF658
analogous
#6058F6 #AF58F6 #F658EE
triadic
#AF58F6 #F6AF58 #58F6AF
tetradic
#AF58F6 #F66058 #9FF658 #58EEF6
square
#AF58F6 #F66058 #9FF658 #58EEF6
split-complementary
#AF58F6 #EEF658 #58F660
monochromatic
#730BC9 #931EF3 #AF58F6 #CB92F9 #E7CCFC

Accessibility & contrast

On white

3.78
#AF58F6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#AF58F6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF58F6
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF58F6#FFFFFF#000000##000000
##AF58F61.003.785.555.55
#FFFFFF3.781.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0080FB
Deuteranopia (green-blind)
#3284F2
Tritanopia (blue-blind)
#A37AA0
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #af58f6;
/* rgb */ color: rgb(175, 88, 246);
/* oklch */ color: oklch(63.8% 0.229 306.2);
Tailwind
colors: {
  custom: {
    50: '#cb8cfa',
    500: '#af58f6',
    950: '#000000',
  },
}
SCSS
$custom: #af58f6;
$custom-light: #cb8cfa;
$custom-dark: #000000;
JSON
{
  "hex": "#af58f6",
  "rgb": {
    "r": 175,
    "g": 88,
    "b": 246
  },
  "hsl": {
    "h": 273.038,
    "s": 89.773,
    "l": 65.49
  },
  "oklch": {
    "l": 0.63766,
    "c": 0.22931,
    "h": 306.2
  },
  "luminance": 0.22747
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF58F6

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

Preview Lab → · Contrast checker → · Palette generator →

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