#AF2EAA#AF2EAA

#AF2EAA is a mid, highly saturated purple. Relative luminance 0.140; OKLCH L 54.7% C 0.212 H 329.7°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#AF2EAA
RGBrgb(175, 46, 170)
HSLhsl(302, 58%, 43%)
HSVhsv(302, 74%, 69%)
CMYKcmyk(0%, 73.7%, 2.9%, 31.4%)
CIE-LABlab(44.19, 64.75, -38.68)
CIE-LCHlch(44.19, 75.43, 329.15°)
OKLaboklab(54.69% 0.1829 -0.1069)
OKLCHoklch(54.69% 0.212 329.7)
XYZxyz(25.9117, 13.9722, 39.3546)
Luminance0.1397 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2EAA #2EAF33
analogous
#742EAF #AF2EAA #AF2E69
triadic
#AF2EAA #AAAF2E #2EAAAF
tetradic
#AF2EAA #AF742E #2EAF33 #2E69AF
square
#AF2EAA #AF742E #2EAF33 #2E69AF
split-complementary
#AF2EAA #69AF2E #2EAF74
monochromatic
#4E154C #7F217B #AF2EAA #D04BCA #DC7BD9

Accessibility & contrast

On white

5.54
#AF2EAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#AF2EAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2EAA
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2EAA#FFFFFF#000000##FFFFFF
##AF2EAA1.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C5DAD
Deuteranopia (green-blind)
#546FA7
Tritanopia (blue-blind)
#B5406A
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af2eaa;
/* rgb */ color: rgb(175, 46, 170);
/* oklch */ color: oklch(54.7% 0.212 329.7);
Tailwind
colors: {
  custom: {
    50: '#cb74c4',
    500: '#af2eaa',
    950: '#000000',
  },
}
SCSS
$custom: #af2eaa;
$custom-light: #cb74c4;
$custom-dark: #000000;
JSON
{
  "hex": "#af2eaa",
  "rgb": {
    "r": 175,
    "g": 46,
    "b": 170
  },
  "hsl": {
    "h": 302.326,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.54688,
    "c": 0.21186,
    "h": 329.7
  },
  "luminance": 0.1397
}

Semantic roles & 50–950 ramp

primary
#AF2EAA
secondary
#74C577
accent
#E24C46
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140912
muted
#827B81

Preview Lab

Preview with #AF2EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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