#AF2CA5#AF2CA5

#AF2CA5 is a mid, highly saturated purple. Relative luminance 0.136; OKLCH L 54.3% C 0.210 H 331.4°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#AF2CA5
RGBrgb(175, 44, 165)
HSLhsl(305, 60%, 43%)
HSVhsv(305, 75%, 69%)
CMYKcmyk(0%, 74.9%, 5.7%, 31.4%)
CIE-LABlab(43.70, 64.60, -36.48)
CIE-LCHlch(43.70, 74.19, 330.54°)
OKLaboklab(54.25% 0.1846 -0.1005)
OKLCHoklch(54.25% 0.21 331.4)
XYZxyz(25.3714, 13.6340, 36.8854)
Luminance0.1363 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2CA5 #2CAF36
analogous
#772CAF #AF2CA5 #AF2C63
triadic
#AF2CA5 #A5AF2C #2CA5AF
tetradic
#AF2CA5 #AF772C #2CAF36 #2C63AF
square
#AF2CA5 #AF772C #2CAF36 #2C63AF
split-complementary
#AF2CA5 #63AF2C #2CAF77
monochromatic
#4D1349 #7E2077 #AF2CA5 #D147C6 #DD78D5

Accessibility & contrast

On white

5.64
#AF2CA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#AF2CA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2CA5
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2CA5#FFFFFF#000000##FFFFFF
##AF2CA51.005.643.735.64
#FFFFFF5.641.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#205CA8
Deuteranopia (green-blind)
#566EA2
Tritanopia (blue-blind)
#B63C66
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af2ca5;
/* rgb */ color: rgb(175, 44, 165);
/* oklch */ color: oklch(54.3% 0.210 331.4);
Tailwind
colors: {
  custom: {
    50: '#cb73c0',
    500: '#af2ca5',
    950: '#000000',
  },
}
SCSS
$custom: #af2ca5;
$custom-light: #cb73c0;
$custom-dark: #000000;
JSON
{
  "hex": "#af2ca5",
  "rgb": {
    "r": 175,
    "g": 44,
    "b": 165
  },
  "hsl": {
    "h": 304.58,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.5425,
    "c": 0.21021,
    "h": 331.4
  },
  "luminance": 0.13632
}

Semantic roles & 50–950 ramp

primary
#AF2CA5
secondary
#72C578
accent
#E35145
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF2CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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