#AF2EA1#AF2EA1

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

Color values

HEX#AF2EA1
RGBrgb(175, 46, 161)
HSLhsl(307, 58%, 43%)
HSVhsv(307, 74%, 69%)
CMYKcmyk(0%, 73.7%, 8%, 31.4%)
CIE-LABlab(43.72, 63.34, -34.07)
CIE-LCHlch(43.72, 71.92, 331.72°)
OKLaboklab(54.19% 0.1826 -0.0935)
OKLCHoklch(54.19% 0.205 332.9)
XYZxyz(25.0893, 13.6433, 35.0233)
Luminance0.1364 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2EA1 #2EAF3C
analogous
#7C2EAF #AF2EA1 #AF2E60
triadic
#AF2EA1 #A1AF2E #2EA1AF
tetradic
#AF2EA1 #AF7C2E #2EAF3C #2E60AF
square
#AF2EA1 #AF7C2E #2EAF3C #2E60AF
split-complementary
#AF2EA1 #60AF2E #2EAF7C
monochromatic
#4E1548 #7F2174 #AF2EA1 #D04BC1 #DC7BD2

Accessibility & contrast

On white

5.63
#AF2EA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF2EA1
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2EA1#FFFFFF#000000##FFFFFF
##AF2EA11.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285CA4
Deuteranopia (green-blind)
#596E9E
Tritanopia (blue-blind)
#B73B65
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af2ea1;
/* rgb */ color: rgb(175, 46, 161);
/* oklch */ color: oklch(54.2% 0.205 332.9);
Tailwind
colors: {
  custom: {
    50: '#cb74bd',
    500: '#af2ea1',
    950: '#000000',
  },
}
SCSS
$custom: #af2ea1;
$custom-light: #cb74bd;
$custom-dark: #000000;
JSON
{
  "hex": "#af2ea1",
  "rgb": {
    "r": 175,
    "g": 46,
    "b": 161
  },
  "hsl": {
    "h": 306.512,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.54192,
    "c": 0.20518,
    "h": 332.9
  },
  "luminance": 0.13641
}

Semantic roles & 50–950 ramp

primary
#AF2EA1
secondary
#74C57D
accent
#E25746
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF2EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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