#AF5CAA#AF5CAA

#AF5CAA is a mid, vivid purple. Relative luminance 0.197; OKLCH L 60.0% C 0.147 H 329.5°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#AF5CAA
RGBrgb(175, 92, 170)
HSLhsl(304, 34%, 52%)
HSVhsv(304, 47%, 69%)
CMYKcmyk(0%, 47.4%, 2.9%, 31.4%)
CIE-LABlab(51.46, 44.89, -27.28)
CIE-LCHlch(51.46, 52.53, 328.71°)
OKLaboklab(60% 0.1263 -0.0745)
OKLCHoklch(60% 0.147 329.5)
XYZxyz(28.7617, 19.6721, 40.3046)
Luminance0.1967 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5CAA #5CAF61
analogous
#8A5CAF #AF5CAA #AF5C81
triadic
#AF5CAA #AAAF5C #5CAAAF
tetradic
#AF5CAA #AF8A5C #5CAF61 #5C81AF
square
#AF5CAA #AF8A5C #5CAF61 #5C81AF
split-complementary
#AF5CAA #81AF5C #5CAF8A
monochromatic
#61305E #8A4486 #AF5CAA #C385BF #D7AED5

Accessibility & contrast

On white

4.26
#AF5CAA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#AF5CAA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5CAA
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5CAA#FFFFFF#000000##000000
##AF5CAA1.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5774AD
Deuteranopia (green-blind)
#6F7FA8
Tritanopia (blue-blind)
#B4637B
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #af5caa;
/* rgb */ color: rgb(175, 92, 170);
/* oklch */ color: oklch(60.0% 0.147 329.5);
Tailwind
colors: {
  custom: {
    50: '#c98dc3',
    500: '#af5caa',
    950: '#000000',
  },
}
SCSS
$custom: #af5caa;
$custom-light: #c98dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#af5caa",
  "rgb": {
    "r": 175,
    "g": 92,
    "b": 170
  },
  "hsl": {
    "h": 303.614,
    "s": 34.156,
    "l": 52.353
  },
  "oklch": {
    "l": 0.59999,
    "c": 0.14659,
    "h": 329.5
  },
  "luminance": 0.19671
}

Semantic roles & 50–950 ramp

primary
#AF5CAA
secondary
#A1C5A4
accent
#CA645E
background
#FCF8FC
surface
#F8F0F8
border
#D1CBD1
text
#130C12
muted
#827D81

Preview Lab

Preview with #AF5CAA

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

Preview Lab → · Contrast checker → · Palette generator →

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