#AF58D2#AF58D2

#AF58D2 is a mid, vivid purple. Relative luminance 0.207; OKLCH L 61.5% C 0.192 H 315.1°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#AF58D2
RGBrgb(175, 88, 210)
HSLhsl(283, 58%, 58%)
HSVhsv(283, 58%, 82%)
CMYKcmyk(16.7%, 58.1%, 0%, 17.6%)
CIE-LABlab(52.67, 54.71, -48.47)
CIE-LCHlch(52.67, 73.09, 318.46°)
OKLaboklab(61.53% 0.1363 -0.1356)
OKLCHoklch(61.53% 0.192 315.1)
XYZxyz(32.7999, 20.7476, 63.2372)
Luminance0.2075 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF58D2 #7BD258
analogous
#7258D2 #AF58D2 #D258B8
triadic
#AF58D2 #D2AF58 #58D2AF
tetradic
#AF58D2 #D27258 #7BD258 #58B8D2
square
#AF58D2 #D27258 #7BD258 #58B8D2
split-complementary
#AF58D2 #B8D258 #58D272
monochromatic
#6D258A #9332BB #AF58D2 #C688DF #DDB8EC

Accessibility & contrast

On white

4.08
#AF58D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#AF58D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF58D2
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF58D2#FFFFFF#000000##000000
##AF58D21.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3579D6
Deuteranopia (green-blind)
#5780CF
Tritanopia (blue-blind)
#AD6D8D
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #af58d2;
/* rgb */ color: rgb(175, 88, 210);
/* oklch */ color: oklch(61.5% 0.192 315.1);
Tailwind
colors: {
  custom: {
    50: '#ca8be0',
    500: '#af58d2',
    950: '#000000',
  },
}
SCSS
$custom: #af58d2;
$custom-light: #ca8be0;
$custom-dark: #000000;
JSON
{
  "hex": "#af58d2",
  "rgb": {
    "r": 175,
    "g": 88,
    "b": 210
  },
  "hsl": {
    "h": 282.787,
    "s": 57.547,
    "l": 58.431
  },
  "oklch": {
    "l": 0.61529,
    "c": 0.19231,
    "h": 315.1
  },
  "luminance": 0.20747
}

Semantic roles & 50–950 ramp

primary
#AF58D2
secondary
#B9DBAB
accent
#E14773
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #AF58D2

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

Preview Lab → · Contrast checker → · Palette generator →

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