#AF5DC7#AF5DC7

#AF5DC7 is a mid, vivid purple. Relative luminance 0.211; OKLCH L 61.6% C 0.173 H 318.1°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#AF5DC7
RGBrgb(175, 93, 199)
HSLhsl(286, 49%, 57%)
HSVhsv(286, 53%, 78%)
CMYKcmyk(12.1%, 53.3%, 0%, 22%)
CIE-LABlab(53.02, 49.96, -41.62)
CIE-LCHlch(53.02, 65.03, 320.20°)
OKLaboklab(61.6% 0.1291 -0.1157)
OKLCHoklch(61.6% 0.173 318.1)
XYZxyz(31.9009, 21.0674, 56.4077)
Luminance0.2107 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5DC7 #75C75D
analogous
#7A5DC7 #AF5DC7 #C75DAA
triadic
#AF5DC7 #C7AF5D #5DC7AF
tetradic
#AF5DC7 #C77A5D #75C75D #5DAAC7
square
#AF5DC7 #C77A5D #75C75D #5DAAC7
split-complementary
#AF5DC7 #AAC75D #5DC77A
monochromatic
#6B2C7E #923BAC #AF5DC7 #C58AD7 #DCB8E6

Accessibility & contrast

On white

4.03
#AF5DC7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#AF5DC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5DC7
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5DC7#FFFFFF#000000##000000
##AF5DC71.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4779CA
Deuteranopia (green-blind)
#6281C4
Tritanopia (blue-blind)
#AF6D89
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #af5dc7;
/* rgb */ color: rgb(175, 93, 199);
/* oklch */ color: oklch(61.6% 0.173 318.1);
Tailwind
colors: {
  custom: {
    50: '#c98ed8',
    500: '#af5dc7',
    950: '#000000',
  },
}
SCSS
$custom: #af5dc7;
$custom-light: #c98ed8;
$custom-dark: #000000;
JSON
{
  "hex": "#af5dc7",
  "rgb": {
    "r": 175,
    "g": 93,
    "b": 199
  },
  "hsl": {
    "h": 286.415,
    "s": 48.624,
    "l": 57.255
  },
  "oklch": {
    "l": 0.61597,
    "c": 0.17338,
    "h": 318.1
  },
  "luminance": 0.21066
}

Semantic roles & 50–950 ramp

primary
#AF5DC7
secondary
#B4D5AA
accent
#D8506F
background
#FCF8FD
surface
#F9F0FA
border
#D2CBD3
text
#130C14
muted
#827D83

Preview Lab

Preview with #AF5DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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