#AF2CA9#AF2CA9

#AF2CA9 is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.5% C 0.213 H 330.1°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#AF2CA9
RGBrgb(175, 44, 169)
HSLhsl(303, 60%, 43%)
HSVhsv(303, 75%, 69%)
CMYKcmyk(0%, 74.9%, 3.4%, 31.4%)
CIE-LABlab(43.92, 65.22, -38.52)
CIE-LCHlch(43.92, 75.75, 329.43°)
OKLaboklab(54.47% 0.1847 -0.1064)
OKLCHoklch(54.47% 0.213 330.1)
XYZxyz(25.7412, 13.7819, 38.8328)
Luminance0.1378 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2CA9 #2CAF32
analogous
#732CAF #AF2CA9 #AF2C67
triadic
#AF2CA9 #A9AF2C #2CA9AF
tetradic
#AF2CA9 #AF732C #2CAF32 #2C67AF
square
#AF2CA9 #AF732C #2CAF32 #2C67AF
split-complementary
#AF2CA9 #67AF2C #2CAF73
monochromatic
#4D134B #7E207A #AF2CA9 #D147CB #DD78D9

Accessibility & contrast

On white

5.59
#AF2CA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#AF2CA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2CA9
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2CA9#FFFFFF#000000##FFFFFF
##AF2CA91.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A5DAC
Deuteranopia (green-blind)
#546EA6
Tritanopia (blue-blind)
#B63E69
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af2ca9;
/* rgb */ color: rgb(175, 44, 169);
/* oklch */ color: oklch(54.5% 0.213 330.1);
Tailwind
colors: {
  custom: {
    50: '#cb73c3',
    500: '#af2ca9',
    950: '#000000',
  },
}
SCSS
$custom: #af2ca9;
$custom-light: #cb73c3;
$custom-dark: #000000;
JSON
{
  "hex": "#af2ca9",
  "rgb": {
    "r": 175,
    "g": 44,
    "b": 169
  },
  "hsl": {
    "h": 302.748,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.54474,
    "c": 0.21317,
    "h": 330.1
  },
  "luminance": 0.1378
}

Semantic roles & 50–950 ramp

primary
#AF2CA9
secondary
#72C576
accent
#E34C45
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140912
muted
#827B81

Preview Lab

Preview with #AF2CA9

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

Preview Lab → · Contrast checker → · Palette generator →

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