#AF2CA7#AF2CA7

#AF2CA7 is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.4% C 0.212 H 330.7°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#AF2CA7
RGBrgb(175, 44, 167)
HSLhsl(304, 60%, 43%)
HSVhsv(304, 75%, 69%)
CMYKcmyk(0%, 74.9%, 4.6%, 31.4%)
CIE-LABlab(43.81, 64.91, -37.51)
CIE-LCHlch(43.81, 74.97, 329.98°)
OKLaboklab(54.36% 0.1847 -0.1034)
OKLCHoklch(54.36% 0.212 330.7)
XYZxyz(25.5549, 13.7074, 37.8516)
Luminance0.1371 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2CA7 #2CAF34
analogous
#752CAF #AF2CA7 #AF2C65
triadic
#AF2CA7 #A7AF2C #2CA7AF
tetradic
#AF2CA7 #AF752C #2CAF34 #2C65AF
square
#AF2CA7 #AF752C #2CAF34 #2C65AF
split-complementary
#AF2CA7 #65AF2C #2CAF75
monochromatic
#4D134A #7E2078 #AF2CA7 #D147C8 #DD78D7

Accessibility & contrast

On white

5.61
#AF2CA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#AF2CA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2CA7
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2CA7#FFFFFF#000000##FFFFFF
##AF2CA71.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D5CAA
Deuteranopia (green-blind)
#556EA4
Tritanopia (blue-blind)
#B63D67
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af2ca7;
/* rgb */ color: rgb(175, 44, 167);
/* oklch */ color: oklch(54.4% 0.212 330.7);
Tailwind
colors: {
  custom: {
    50: '#cb73c1',
    500: '#af2ca7',
    950: '#000000',
  },
}
SCSS
$custom: #af2ca7;
$custom-light: #cb73c1;
$custom-dark: #000000;
JSON
{
  "hex": "#af2ca7",
  "rgb": {
    "r": 175,
    "g": 44,
    "b": 167
  },
  "hsl": {
    "h": 303.664,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.54361,
    "c": 0.21169,
    "h": 330.7
  },
  "luminance": 0.13705
}

Semantic roles & 50–950 ramp

primary
#AF2CA7
secondary
#72C577
accent
#E34E45
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF2CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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