#AF2CA4#AF2CA4

#AF2CA4 is a mid, highly saturated purple. Relative luminance 0.136; OKLCH L 54.2% C 0.209 H 331.8°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#AF2CA4
RGBrgb(175, 44, 164)
HSLhsl(305, 60%, 43%)
HSVhsv(305, 75%, 69%)
CMYKcmyk(0%, 74.9%, 6.3%, 31.4%)
CIE-LABlab(43.65, 64.44, -35.97)
CIE-LCHlch(43.65, 73.80, 330.83°)
OKLaboklab(54.2% 0.1846 -0.099)
OKLCHoklch(54.2% 0.209 331.8)
XYZxyz(25.2808, 13.5977, 36.4079)
Luminance0.1360 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2CA4 #2CAF37
analogous
#782CAF #AF2CA4 #AF2C63
triadic
#AF2CA4 #A4AF2C #2CA4AF
tetradic
#AF2CA4 #AF782C #2CAF37 #2C63AF
square
#AF2CA4 #AF782C #2CAF37 #2C63AF
split-complementary
#AF2CA4 #63AF2C #2CAF78
monochromatic
#4D1348 #7E2076 #AF2CA4 #D147C5 #DD78D5

Accessibility & contrast

On white

5.65
#AF2CA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#AF2CA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2CA4
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2CA4#FFFFFF#000000##FFFFFF
##AF2CA41.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225BA7
Deuteranopia (green-blind)
#576EA1
Tritanopia (blue-blind)
#B63C66
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af2ca4;
/* rgb */ color: rgb(175, 44, 164);
/* oklch */ color: oklch(54.2% 0.209 331.8);
Tailwind
colors: {
  custom: {
    50: '#cb73bf',
    500: '#af2ca4',
    950: '#000000',
  },
}
SCSS
$custom: #af2ca4;
$custom-light: #cb73bf;
$custom-dark: #000000;
JSON
{
  "hex": "#af2ca4",
  "rgb": {
    "r": 175,
    "g": 44,
    "b": 164
  },
  "hsl": {
    "h": 305.038,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.54195,
    "c": 0.20948,
    "h": 331.8
  },
  "luminance": 0.13596
}

Semantic roles & 50–950 ramp

primary
#AF2CA4
secondary
#72C579
accent
#E35245
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF2CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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