#AF5CA5#AF5CA5

#AF5CA5 is a mid, vivid purple. Relative luminance 0.195; OKLCH L 59.8% C 0.142 H 331.8°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#AF5CA5
RGBrgb(175, 92, 165)
HSLhsl(307, 34%, 52%)
HSVhsv(307, 47%, 69%)
CMYKcmyk(0%, 47.4%, 5.7%, 31.4%)
CIE-LABlab(51.25, 43.99, -24.69)
CIE-LCHlch(51.25, 50.44, 330.70°)
OKLaboklab(59.77% 0.1252 -0.0671)
OKLCHoklch(59.77% 0.142 331.8)
XYZxyz(28.2977, 19.4865, 37.8608)
Luminance0.1948 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5CA5 #5CAF66
analogous
#905CAF #AF5CA5 #AF5C7C
triadic
#AF5CA5 #A5AF5C #5CA5AF
tetradic
#AF5CA5 #AF905C #5CAF66 #5C7CAF
square
#AF5CA5 #AF905C #5CAF66 #5C7CAF
split-complementary
#AF5CA5 #7CAF5C #5CAF90
monochromatic
#61305B #8A4482 #AF5CA5 #C385BC #D7AED2

Accessibility & contrast

On white

4.29
#AF5CA5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#AF5CA5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5CA5
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5CA5#FFFFFF#000000##000000
##AF5CA51.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5973A8
Deuteranopia (green-blind)
#717EA3
Tritanopia (blue-blind)
#B56279
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #af5ca5;
/* rgb */ color: rgb(175, 92, 165);
/* oklch */ color: oklch(59.8% 0.142 331.8);
Tailwind
colors: {
  custom: {
    50: '#c98dc0',
    500: '#af5ca5',
    950: '#000000',
  },
}
SCSS
$custom: #af5ca5;
$custom-light: #c98dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#af5ca5",
  "rgb": {
    "r": 175,
    "g": 92,
    "b": 165
  },
  "hsl": {
    "h": 307.229,
    "s": 34.156,
    "l": 52.353
  },
  "oklch": {
    "l": 0.59771,
    "c": 0.14208,
    "h": 331.8
  },
  "luminance": 0.19485
}

Semantic roles & 50–950 ramp

primary
#AF5CA5
secondary
#A1C5A6
accent
#CA6B5E
background
#FCF8FB
surface
#F8F0F7
border
#D1CBD0
text
#130C12
muted
#827D81

Preview Lab

Preview with #AF5CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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