#AF5ACA#AF5ACA

#AF5ACA is a mid, vivid purple. Relative luminance 0.207; OKLCH L 61.3% C 0.181 H 317.4°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#AF5ACA
RGBrgb(175, 90, 202)
HSLhsl(286, 51%, 57%)
HSVhsv(286, 55%, 79%)
CMYKcmyk(13.4%, 55.4%, 0%, 20.8%)
CIE-LABlab(52.61, 52.08, -43.99)
CIE-LCHlch(52.61, 68.18, 319.81°)
OKLaboklab(61.34% 0.1333 -0.1226)
OKLCHoklch(61.34% 0.181 317.4)
XYZxyz(31.9945, 20.6917, 58.1742)
Luminance0.2069 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5ACA #75CA5A
analogous
#775ACA #AF5ACA #CA5AAD
triadic
#AF5ACA #CAAF5A #5ACAAF
tetradic
#AF5ACA #CA775A #75CA5A #5AADCA
square
#AF5ACA #CA775A #75CA5A #5AADCA
split-complementary
#AF5ACA #ADCA5A #5ACA77
monochromatic
#6B2980 #9238AF #AF5ACA #C588D9 #DCB7E8

Accessibility & contrast

On white

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

On black

5.14
#AF5ACA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5ACA
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5ACA#FFFFFF#000000##000000
##AF5ACA1.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4078CE
Deuteranopia (green-blind)
#5E80C7
Tritanopia (blue-blind)
#AE6C8A
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #af5aca;
/* rgb */ color: rgb(175, 90, 202);
/* oklch */ color: oklch(61.3% 0.181 317.4);
Tailwind
colors: {
  custom: {
    50: '#c98cda',
    500: '#af5aca',
    950: '#000000',
  },
}
SCSS
$custom: #af5aca;
$custom-light: #c98cda;
$custom-dark: #000000;
JSON
{
  "hex": "#af5aca",
  "rgb": {
    "r": 175,
    "g": 90,
    "b": 202
  },
  "hsl": {
    "h": 285.536,
    "s": 51.376,
    "l": 57.255
  },
  "oklch": {
    "l": 0.61344,
    "c": 0.18114,
    "h": 317.4
  },
  "luminance": 0.20691
}

Semantic roles & 50–950 ramp

primary
#AF5ACA
secondary
#B4D7A9
accent
#DB4D6F
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AF5ACA

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

Preview Lab → · Contrast checker → · Palette generator →

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