#AF5CC2#AF5CC2

#AF5CC2 is a mid, vivid purple. Relative luminance 0.207; OKLCH L 61.2% C 0.170 H 319.9°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#AF5CC2
RGBrgb(175, 92, 194)
HSLhsl(289, 46%, 56%)
HSVhsv(289, 53%, 76%)
CMYKcmyk(9.8%, 52.6%, 0%, 23.9%)
CIE-LABlab(52.58, 49.46, -39.45)
CIE-LCHlch(52.58, 63.27, 321.43°)
OKLaboklab(61.19% 0.1299 -0.1094)
OKLCHoklch(61.19% 0.17 319.9)
XYZxyz(31.2427, 20.6646, 53.3714)
Luminance0.2066 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5CC2 #6FC25C
analogous
#7C5CC2 #AF5CC2 #C25CA2
triadic
#AF5CC2 #C2AF5C #5CC2AF
tetradic
#AF5CC2 #C27C5C #6FC25C #5CA2C2
square
#AF5CC2 #C27C5C #6FC25C #5CA2C2
split-complementary
#AF5CC2 #A2C25C #5CC27C
monochromatic
#692D77 #913DA4 #AF5CC2 #C589D3 #DBB5E3

Accessibility & contrast

On white

4.09
#AF5CC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#AF5CC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5CC2
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5CC2#FFFFFF#000000##000000
##AF5CC21.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4978C5
Deuteranopia (green-blind)
#6480BF
Tritanopia (blue-blind)
#B06B86
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #af5cc2;
/* rgb */ color: rgb(175, 92, 194);
/* oklch */ color: oklch(61.2% 0.170 319.9);
Tailwind
colors: {
  custom: {
    50: '#c98dd5',
    500: '#af5cc2',
    950: '#000000',
  },
}
SCSS
$custom: #af5cc2;
$custom-light: #c98dd5;
$custom-dark: #000000;
JSON
{
  "hex": "#af5cc2",
  "rgb": {
    "r": 175,
    "g": 92,
    "b": 194
  },
  "hsl": {
    "h": 288.824,
    "s": 45.536,
    "l": 56.078
  },
  "oklch": {
    "l": 0.6119,
    "c": 0.16988,
    "h": 319.9
  },
  "luminance": 0.20663
}

Semantic roles & 50–950 ramp

primary
#AF5CC2
secondary
#B0D2A8
accent
#D5536B
background
#FCF8FD
surface
#F9F0FA
border
#D2CBD3
text
#130C14
muted
#827D83

Preview Lab

Preview with #AF5CC2

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

Preview Lab → · Contrast checker → · Palette generator →

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