#AF3CA8#AF3CA8

#AF3CA8 is a mid, vivid purple. Relative luminance 0.152; OKLCH L 55.9% C 0.194 H 330.3°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#AF3CA8
RGBrgb(175, 60, 168)
HSLhsl(304, 49%, 46%)
HSVhsv(304, 66%, 69%)
CMYKcmyk(0%, 65.7%, 4%, 31.4%)
CIE-LABlab(45.87, 59.38, -34.85)
CIE-LCHlch(45.87, 68.85, 329.60°)
OKLaboklab(55.86% 0.1684 -0.0959)
OKLCHoklch(55.86% 0.194 330.3)
XYZxyz(26.3628, 15.1748, 38.5787)
Luminance0.1517 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3CA8 #3CAF43
analogous
#7C3CAF #AF3CA8 #AF3C6E
triadic
#AF3CA8 #A8AF3C #3CA8AF
tetradic
#AF3CA8 #AF7C3C #3CAF43 #3C6EAF
square
#AF3CA8 #AF7C3C #3CAF43 #3C6EAF
split-complementary
#AF3CA8 #6EAF3C #3CAF7C
monochromatic
#541D50 #812C7C #AF3CA8 #C860C2 #D88DD3

Accessibility & contrast

On white

5.20
#AF3CA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#AF3CA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3CA8
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3CA8#FFFFFF#000000##FFFFFF
##AF3CA81.005.204.035.20
#FFFFFF5.201.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3363AB
Deuteranopia (green-blind)
#5C72A5
Tritanopia (blue-blind)
#B5496D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #af3ca8;
/* rgb */ color: rgb(175, 60, 168);
/* oklch */ color: oklch(55.9% 0.194 330.3);
Tailwind
colors: {
  custom: {
    50: '#ca7bc2',
    500: '#af3ca8',
    950: '#000000',
  },
}
SCSS
$custom: #af3ca8;
$custom-light: #ca7bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#af3ca8",
  "rgb": {
    "r": 175,
    "g": 60,
    "b": 168
  },
  "hsl": {
    "h": 303.652,
    "s": 48.936,
    "l": 46.078
  },
  "oklch": {
    "l": 0.55864,
    "c": 0.19376,
    "h": 330.3
  },
  "luminance": 0.15173
}

Semantic roles & 50–950 ramp

primary
#AF3CA8
secondary
#84C388
accent
#D8584F
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A12
muted
#827C81

Preview Lab

Preview with #AF3CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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