#AF5CC5#AF5CC5

#AF5CC5 is a mid, vivid purple. Relative luminance 0.208; OKLCH L 61.3% C 0.173 H 318.9°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#AF5CC5
RGBrgb(175, 92, 197)
HSLhsl(287, 48%, 57%)
HSVhsv(287, 53%, 77%)
CMYKcmyk(11.2%, 53.3%, 0%, 22.7%)
CIE-LABlab(52.73, 50.07, -40.94)
CIE-LCHlch(52.73, 64.67, 320.73°)
OKLaboklab(61.35% 0.1302 -0.1137)
OKLCHoklch(61.35% 0.173 318.9)
XYZxyz(31.5831, 20.8007, 55.1638)
Luminance0.2080 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5CC5 #72C55C
analogous
#7B5CC5 #AF5CC5 #C55CA6
triadic
#AF5CC5 #C5AF5C #5CC5AF
tetradic
#AF5CC5 #C57B5C #72C55C #5CA6C5
square
#AF5CC5 #C57B5C #72C55C #5CA6C5
split-complementary
#AF5CC5 #A6C55C #5CC57B
monochromatic
#6A2C7B #913CA8 #AF5CC5 #C589D5 #DBB6E5

Accessibility & contrast

On white

4.07
#AF5CC5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#AF5CC5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5CC5
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5CC5#FFFFFF#000000##000000
##AF5CC51.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4778C8
Deuteranopia (green-blind)
#6281C2
Tritanopia (blue-blind)
#AF6B88
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #af5cc5;
/* rgb */ color: rgb(175, 92, 197);
/* oklch */ color: oklch(61.3% 0.173 318.9);
Tailwind
colors: {
  custom: {
    50: '#c98dd7',
    500: '#af5cc5',
    950: '#000000',
  },
}
SCSS
$custom: #af5cc5;
$custom-light: #c98dd7;
$custom-dark: #000000;
JSON
{
  "hex": "#af5cc5",
  "rgb": {
    "r": 175,
    "g": 92,
    "b": 197
  },
  "hsl": {
    "h": 287.429,
    "s": 47.511,
    "l": 56.667
  },
  "oklch": {
    "l": 0.61349,
    "c": 0.17291,
    "h": 318.9
  },
  "luminance": 0.20799
}

Semantic roles & 50–950 ramp

primary
#AF5CC5
secondary
#B2D4A9
accent
#D7516D
background
#FCF8FD
surface
#F9F0FA
border
#D2CBD3
text
#130C14
muted
#827D83

Preview Lab

Preview with #AF5CC5

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

Preview Lab → · Contrast checker → · Palette generator →

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