#AF5CC7#AF5CC7

#AF5CC7 is a mid, vivid purple. Relative luminance 0.209; OKLCH L 61.5% C 0.175 H 318.2°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#AF5CC7
RGBrgb(175, 92, 199)
HSLhsl(287, 49%, 57%)
HSVhsv(287, 54%, 78%)
CMYKcmyk(12.1%, 53.8%, 0%, 22%)
CIE-LABlab(52.83, 50.47, -41.92)
CIE-LCHlch(52.83, 65.61, 320.28°)
OKLaboklab(61.46% 0.1304 -0.1166)
OKLCHoklch(61.46% 0.175 318.2)
XYZxyz(31.8137, 20.8930, 56.3787)
Luminance0.2089 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5CC7 #74C75C
analogous
#7A5CC7 #AF5CC7 #C75CAA
triadic
#AF5CC7 #C7AF5C #5CC7AF
tetradic
#AF5CC7 #C77A5C #74C75C #5CAAC7
square
#AF5CC7 #C77A5C #74C75C #5CAAC7
split-complementary
#AF5CC7 #AAC75C #5CC77A
monochromatic
#6B2B7D #923BAB #AF5CC7 #C58AD7 #DCB7E6

Accessibility & contrast

On white

4.06
#AF5CC7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#AF5CC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5CC7
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5CC7#FFFFFF#000000##000000
##AF5CC71.004.065.185.18
#FFFFFF4.061.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4679CB
Deuteranopia (green-blind)
#6181C4
Tritanopia (blue-blind)
#AF6C89
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #af5cc7;
/* rgb */ color: rgb(175, 92, 199);
/* oklch */ color: oklch(61.5% 0.175 318.2);
Tailwind
colors: {
  custom: {
    50: '#c98dd8',
    500: '#af5cc7',
    950: '#000000',
  },
}
SCSS
$custom: #af5cc7;
$custom-light: #c98dd8;
$custom-dark: #000000;
JSON
{
  "hex": "#af5cc7",
  "rgb": {
    "r": 175,
    "g": 92,
    "b": 199
  },
  "hsl": {
    "h": 286.542,
    "s": 48.858,
    "l": 57.059
  },
  "oklch": {
    "l": 0.61457,
    "c": 0.17496,
    "h": 318.2
  },
  "luminance": 0.20892
}

Semantic roles & 50–950 ramp

primary
#AF5CC7
secondary
#B3D5AA
accent
#D84F6E
background
#FCF8FD
surface
#F9F0FA
border
#D2CBD3
text
#130C14
muted
#827D83

Preview Lab

Preview with #AF5CC7

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

Preview Lab → · Contrast checker → · Palette generator →

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