#AF3CA6#AF3CA6

#AF3CA6 is a mid, vivid purple. Relative luminance 0.151; OKLCH L 55.8% C 0.192 H 331.1°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#AF3CA6
RGBrgb(175, 60, 166)
HSLhsl(305, 49%, 46%)
HSVhsv(305, 66%, 69%)
CMYKcmyk(0%, 65.7%, 5.1%, 31.4%)
CIE-LABlab(45.77, 59.06, -33.82)
CIE-LCHlch(45.77, 68.05, 330.20°)
OKLaboklab(55.76% 0.1682 -0.0929)
OKLCHoklch(55.76% 0.192 331.1)
XYZxyz(26.1779, 15.1008, 37.6050)
Luminance0.1510 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3CA6 #3CAF45
analogous
#7E3CAF #AF3CA6 #AF3C6C
triadic
#AF3CA6 #A6AF3C #3CA6AF
tetradic
#AF3CA6 #AF7E3C #3CAF45 #3C6CAF
square
#AF3CA6 #AF7E3C #3CAF45 #3C6CAF
split-complementary
#AF3CA6 #6CAF3C #3CAF7E
monochromatic
#541D50 #812C7B #AF3CA6 #C860C0 #D88DD2

Accessibility & contrast

On white

5.22
#AF3CA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#AF3CA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3CA6
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3CA6#FFFFFF#000000##FFFFFF
##AF3CA61.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3462A9
Deuteranopia (green-blind)
#5D72A3
Tritanopia (blue-blind)
#B6486C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #af3ca6;
/* rgb */ color: rgb(175, 60, 166);
/* oklch */ color: oklch(55.8% 0.192 331.1);
Tailwind
colors: {
  custom: {
    50: '#ca7bc1',
    500: '#af3ca6',
    950: '#000000',
  },
}
SCSS
$custom: #af3ca6;
$custom-light: #ca7bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#af3ca6",
  "rgb": {
    "r": 175,
    "g": 60,
    "b": 166
  },
  "hsl": {
    "h": 304.696,
    "s": 48.936,
    "l": 46.078
  },
  "oklch": {
    "l": 0.55758,
    "c": 0.19218,
    "h": 331.1
  },
  "luminance": 0.15099
}

Semantic roles & 50–950 ramp

primary
#AF3CA6
secondary
#84C389
accent
#D85A4F
background
#FCF7FB
surface
#F9EEF7
border
#D2C9D0
text
#140A12
muted
#827C81

Preview Lab

Preview with #AF3CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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