#AF1EA3#AF1EA3

#AF1EA3 is a mid, highly saturated purple. Relative luminance 0.127; OKLCH L 53.2% C 0.221 H 332.1°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#AF1EA3
RGBrgb(175, 30, 163)
HSLhsl(305, 71%, 40%)
HSVhsv(305, 83%, 69%)
CMYKcmyk(0%, 82.9%, 6.9%, 31.4%)
CIE-LABlab(42.29, 68.05, -37.52)
CIE-LCHlch(42.29, 77.71, 331.13°)
OKLaboklab(53.21% 0.1955 -0.1034)
OKLCHoklch(53.21% 0.221 332.1)
XYZxyz(24.7544, 12.6890, 35.7887)
Luminance0.1269 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF1EA3 #1EAF2A
analogous
#731EAF #AF1EA3 #AF1E5A
triadic
#AF1EA3 #A3AF1E #1EA3AF
tetradic
#AF1EA3 #AF731E #1EAF2A #1E5AAF
square
#AF1EA3 #AF731E #1EAF2A #1E5AAF
split-complementary
#AF1EA3 #5AAF1E #1EAF73
monochromatic
#470C42 #7B1572 #AF1EA3 #DB2FCD #E463DA

Accessibility & contrast

On white

5.94
#AF1EA3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#AF1EA3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF1EA3
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF1EA3#FFFFFF#000000##FFFFFF
##AF1EA31.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D57A6
Deuteranopia (green-blind)
#526BA0
Tritanopia (blue-blind)
#B73362
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #af1ea3;
/* rgb */ color: rgb(175, 30, 163);
/* oklch */ color: oklch(53.2% 0.221 332.1);
Tailwind
colors: {
  custom: {
    50: '#cb6ebf',
    500: '#af1ea3',
    950: '#000000',
  },
}
SCSS
$custom: #af1ea3;
$custom-light: #cb6ebf;
$custom-dark: #000000;
JSON
{
  "hex": "#af1ea3",
  "rgb": {
    "r": 175,
    "g": 30,
    "b": 163
  },
  "hsl": {
    "h": 304.966,
    "s": 70.732,
    "l": 40.196
  },
  "oklch": {
    "l": 0.53207,
    "c": 0.2212,
    "h": 332.1
  },
  "luminance": 0.12687
}

Semantic roles & 50–950 ramp

primary
#AF1EA3
secondary
#60C968
accent
#ED493A
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #AF1EA3

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

Preview Lab → · Contrast checker → · Palette generator →

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