#AF2EAB#AF2EAB

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

Color values

HEX#AF2EAB
RGBrgb(175, 46, 171)
HSLhsl(302, 58%, 43%)
HSVhsv(302, 74%, 69%)
CMYKcmyk(0%, 73.7%, 2.3%, 31.4%)
CIE-LABlab(44.25, 64.92, -39.19)
CIE-LCHlch(44.25, 75.83, 328.88°)
OKLaboklab(54.75% 0.1829 -0.1083)
OKLCHoklch(54.75% 0.213 329.4)
XYZxyz(26.0067, 14.0102, 39.8547)
Luminance0.1401 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2EAB #2EAF32
analogous
#722EAF #AF2EAB #AF2E6B
triadic
#AF2EAB #ABAF2E #2EABAF
tetradic
#AF2EAB #AF722E #2EAF32 #2E6BAF
square
#AF2EAB #AF722E #2EAF32 #2E6BAF
split-complementary
#AF2EAB #6BAF2E #2EAF72
monochromatic
#4E154C #7F217C #AF2EAB #D04BCB #DC7BD9

Accessibility & contrast

On white

5.52
#AF2EAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#AF2EAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2EAB
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2EAB#FFFFFF#000000##FFFFFF
##AF2EAB1.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A5EAE
Deuteranopia (green-blind)
#546FA8
Tritanopia (blue-blind)
#B5406A
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #af2eab;
/* rgb */ color: rgb(175, 46, 171);
/* oklch */ color: oklch(54.7% 0.213 329.4);
Tailwind
colors: {
  custom: {
    50: '#cb74c4',
    500: '#af2eab',
    950: '#000000',
  },
}
SCSS
$custom: #af2eab;
$custom-light: #cb74c4;
$custom-dark: #000000;
JSON
{
  "hex": "#af2eab",
  "rgb": {
    "r": 175,
    "g": 46,
    "b": 171
  },
  "hsl": {
    "h": 301.86,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.54745,
    "c": 0.21261,
    "h": 329.4
  },
  "luminance": 0.14008
}

Semantic roles & 50–950 ramp

primary
#AF2EAB
secondary
#74C577
accent
#E24B46
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AF2EAB

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

Preview Lab → · Contrast checker → · Palette generator →

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