#AF5CA2#AF5CA2

#AF5CA2 is a mid, vivid purple. Relative luminance 0.194; OKLCH L 59.6% C 0.139 H 333.3°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#AF5CA2
RGBrgb(175, 92, 162)
HSLhsl(309, 34%, 52%)
HSVhsv(309, 47%, 69%)
CMYKcmyk(0%, 47.4%, 7.4%, 31.4%)
CIE-LABlab(51.13, 43.46, -23.12)
CIE-LCHlch(51.13, 49.23, 331.99°)
OKLaboklab(59.64% 0.1246 -0.0627)
OKLCHoklch(59.64% 0.139 333.3)
XYZxyz(28.0278, 19.3786, 36.4396)
Luminance0.1938 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5CA2 #5CAF69
analogous
#935CAF #AF5CA2 #AF5C78
triadic
#AF5CA2 #A2AF5C #5CA2AF
tetradic
#AF5CA2 #AF935C #5CAF69 #5C78AF
square
#AF5CA2 #AF935C #5CAF69 #5C78AF
split-complementary
#AF5CA2 #78AF5C #5CAF93
monochromatic
#613059 #8A447F #AF5CA2 #C385B9 #D7AED1

Accessibility & contrast

On white

4.31
#AF5CA2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#AF5CA2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5CA2
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5CA2#FFFFFF#000000##000000
##AF5CA21.004.314.884.88
#FFFFFF4.311.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B72A4
Deuteranopia (green-blind)
#727EA0
Tritanopia (blue-blind)
#B66177
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #af5ca2;
/* rgb */ color: rgb(175, 92, 162);
/* oklch */ color: oklch(59.6% 0.139 333.3);
Tailwind
colors: {
  custom: {
    50: '#c98dbd',
    500: '#af5ca2',
    950: '#000000',
  },
}
SCSS
$custom: #af5ca2;
$custom-light: #c98dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#af5ca2",
  "rgb": {
    "r": 175,
    "g": 92,
    "b": 162
  },
  "hsl": {
    "h": 309.398,
    "s": 34.156,
    "l": 52.353
  },
  "oklch": {
    "l": 0.59637,
    "c": 0.13945,
    "h": 333.3
  },
  "luminance": 0.19377
}

Semantic roles & 50–950 ramp

primary
#AF5CA2
secondary
#A1C5A7
accent
#CA6F5E
background
#FCF8FB
surface
#F8F0F6
border
#D1CBD0
text
#130C12
muted
#827D81

Preview Lab

Preview with #AF5CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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