#AF58F9#AF58F9

#AF58F9 is a light, highly saturated violet. Relative luminance 0.229; OKLCH L 64.0% C 0.232 H 305.6°. Best body text is #000000 at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#AF58F9
RGBrgb(175, 88, 249)
HSLhsl(272, 93%, 66%)
HSVhsv(272, 65%, 98%)
CMYKcmyk(29.7%, 64.7%, 0%, 2.4%)
CIE-LABlab(55.00, 63.14, -66.67)
CIE-LCHlch(55.00, 91.82, 313.45°)
OKLaboklab(63.97% 0.1353 -0.189)
OKLCHoklch(63.97% 0.232 305.6)
XYZxyz(38.2641, 22.9333, 92.0149)
Luminance0.2293 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF58F9 #A2F958
analogous
#5E58F9 #AF58F9 #F958F3
triadic
#AF58F9 #F9AF58 #58F9AF
tetradic
#AF58F9 #F95E58 #A2F958 #58F3F9
square
#AF58F9 #F95E58 #A2F958 #58F3F9
split-complementary
#AF58F9 #F3F958 #58F95E
monochromatic
#7307CF #931DF7 #AF58F9 #CB93FB #E8CEFD

Accessibility & contrast

On white

3.76
#AF58F9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.59
#AF58F9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF58F9
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF58F9#FFFFFF#000000##000000
##AF58F91.003.765.595.59
#FFFFFF3.761.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0081FE
Deuteranopia (green-blind)
#2C84F5
Tritanopia (blue-blind)
#A27BA1
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #af58f9;
/* rgb */ color: rgb(175, 88, 249);
/* oklch */ color: oklch(64.0% 0.232 305.6);
Tailwind
colors: {
  custom: {
    50: '#cc8cfc',
    500: '#af58f9',
    950: '#000000',
  },
}
SCSS
$custom: #af58f9;
$custom-light: #cc8cfc;
$custom-dark: #000000;
JSON
{
  "hex": "#af58f9",
  "rgb": {
    "r": 175,
    "g": 88,
    "b": 249
  },
  "hsl": {
    "h": 272.422,
    "s": 93.064,
    "l": 66.078
  },
  "oklch": {
    "l": 0.63965,
    "c": 0.2324,
    "h": 305.6
  },
  "luminance": 0.22933
}

Semantic roles & 50–950 ramp

primary
#AF58F9
secondary
#D4F1BC
accent
#E60069
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C18
muted
#837D86

Preview Lab

Preview with #AF58F9

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

Preview Lab → · Contrast checker → · Palette generator →

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