#AF2CA8#AF2CA8

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

Color values

HEX#AF2CA8
RGBrgb(175, 44, 168)
HSLhsl(303, 60%, 43%)
HSVhsv(303, 75%, 69%)
CMYKcmyk(0%, 74.9%, 4%, 31.4%)
CIE-LABlab(43.86, 65.07, -38.02)
CIE-LCHlch(43.86, 75.36, 329.70°)
OKLaboklab(54.42% 0.1847 -0.1049)
OKLCHoklch(54.42% 0.212 330.4)
XYZxyz(25.6477, 13.7445, 38.3403)
Luminance0.1374 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2CA8 #2CAF33
analogous
#742CAF #AF2CA8 #AF2C66
triadic
#AF2CA8 #A8AF2C #2CA8AF
tetradic
#AF2CA8 #AF742C #2CAF33 #2C66AF
square
#AF2CA8 #AF742C #2CAF33 #2C66AF
split-complementary
#AF2CA8 #66AF2C #2CAF74
monochromatic
#4D134A #7E2079 #AF2CA8 #D147C9 #DD78D8

Accessibility & contrast

On white

5.60
#AF2CA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#AF2CA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2CA8
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2CA8#FFFFFF#000000##FFFFFF
##AF2CA81.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C5CAB
Deuteranopia (green-blind)
#556EA5
Tritanopia (blue-blind)
#B63E68
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af2ca8;
/* rgb */ color: rgb(175, 44, 168);
/* oklch */ color: oklch(54.4% 0.212 330.4);
Tailwind
colors: {
  custom: {
    50: '#cb73c2',
    500: '#af2ca8',
    950: '#000000',
  },
}
SCSS
$custom: #af2ca8;
$custom-light: #cb73c2;
$custom-dark: #000000;
JSON
{
  "hex": "#af2ca8",
  "rgb": {
    "r": 175,
    "g": 44,
    "b": 168
  },
  "hsl": {
    "h": 303.206,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.54417,
    "c": 0.21243,
    "h": 330.4
  },
  "luminance": 0.13742
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF2CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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