#AF58DB#AF58DB

#AF58DB is a light, highly saturated violet. Relative luminance 0.212; OKLCH L 62.1% C 0.202 H 312.6°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#AF58DB
RGBrgb(175, 88, 219)
HSLhsl(280, 65%, 60%)
HSVhsv(280, 60%, 86%)
CMYKcmyk(20.1%, 59.8%, 0%, 14.1%)
CIE-LABlab(53.18, 56.59, -52.77)
CIE-LCHlch(53.18, 77.38, 317.00°)
OKLaboklab(62.06% 0.1365 -0.1482)
OKLCHoklch(62.06% 0.202 312.6)
XYZxyz(33.9529, 21.2088, 69.3092)
Luminance0.2121 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF58DB #84DB58
analogous
#6D58DB #AF58DB #DB58C6
triadic
#AF58DB #DBAF58 #58DBAF
tetradic
#AF58DB #DB6D58 #84DB58 #58C6DB
square
#AF58DB #DB6D58 #84DB58 #58C6DB
split-complementary
#AF58DB #C6DB58 #58DB6D
monochromatic
#702198 #952CCA #AF58DB #C78AE6 #DFBDF1

Accessibility & contrast

On white

4.01
#AF58DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#AF58DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF58DB
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF58DB#FFFFFF#000000##000000
##AF58DB1.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A7ADF
Deuteranopia (green-blind)
#5081D8
Tritanopia (blue-blind)
#AA7091
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #af58db;
/* rgb */ color: rgb(175, 88, 219);
/* oklch */ color: oklch(62.1% 0.202 312.6);
Tailwind
colors: {
  custom: {
    50: '#ca8be7',
    500: '#af58db',
    950: '#000000',
  },
}
SCSS
$custom: #af58db;
$custom-light: #ca8be7;
$custom-dark: #000000;
JSON
{
  "hex": "#af58db",
  "rgb": {
    "r": 175,
    "g": 88,
    "b": 219
  },
  "hsl": {
    "h": 279.847,
    "s": 64.532,
    "l": 60.196
  },
  "oklch": {
    "l": 0.6206,
    "c": 0.2015,
    "h": 312.6
  },
  "luminance": 0.21208
}

Semantic roles & 50–950 ramp

primary
#AF58DB
secondary
#BFE1AE
accent
#CC1955
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF58DB

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

Preview Lab → · Contrast checker → · Palette generator →

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