#AF2CA1#AF2CA1

#AF2CA1 is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 54.0% C 0.207 H 332.9°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#AF2CA1
RGBrgb(175, 44, 161)
HSLhsl(306, 60%, 43%)
HSVhsv(306, 75%, 69%)
CMYKcmyk(0%, 74.9%, 8%, 31.4%)
CIE-LABlab(43.49, 63.98, -34.43)
CIE-LCHlch(43.49, 72.65, 331.72°)
OKLaboklab(54.03% 0.1845 -0.0945)
OKLCHoklch(54.03% 0.207 332.9)
XYZxyz(25.0130, 13.4906, 34.9979)
Luminance0.1349 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2CA1 #2CAF3A
analogous
#7B2CAF #AF2CA1 #AF2C60
triadic
#AF2CA1 #A1AF2C #2CA1AF
tetradic
#AF2CA1 #AF7B2C #2CAF3A #2C60AF
square
#AF2CA1 #AF7B2C #2CAF3A #2C60AF
split-complementary
#AF2CA1 #60AF2C #2CAF7B
monochromatic
#4D1347 #7E2074 #AF2CA1 #D147C2 #DD78D2

Accessibility & contrast

On white

5.68
#AF2CA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#AF2CA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2CA1
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2CA1#FFFFFF#000000##FFFFFF
##AF2CA11.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255BA4
Deuteranopia (green-blind)
#586D9E
Tritanopia (blue-blind)
#B73A64
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af2ca1;
/* rgb */ color: rgb(175, 44, 161);
/* oklch */ color: oklch(54.0% 0.207 332.9);
Tailwind
colors: {
  custom: {
    50: '#cb73bd',
    500: '#af2ca1',
    950: '#000000',
  },
}
SCSS
$custom: #af2ca1;
$custom-light: #cb73bd;
$custom-dark: #000000;
JSON
{
  "hex": "#af2ca1",
  "rgb": {
    "r": 175,
    "g": 44,
    "b": 161
  },
  "hsl": {
    "h": 306.412,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.54032,
    "c": 0.20729,
    "h": 332.9
  },
  "luminance": 0.13489
}

Semantic roles & 50–950 ramp

primary
#AF2CA1
secondary
#72C57B
accent
#E35645
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF2CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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