#AF2EAF#AF2EAF

#AF2EAF is a mid, highly saturated purple. Relative luminance 0.142; OKLCH L 55.0% C 0.216 H 328.0°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#AF2EAF
RGBrgb(175, 46, 175)
HSLhsl(300, 58%, 43%)
HSVhsv(300, 74%, 69%)
CMYKcmyk(0%, 73.7%, 0%, 31.4%)
CIE-LABlab(44.47, 65.56, -41.21)
CIE-LCHlch(44.47, 77.44, 327.85°)
OKLaboklab(54.97% 0.1829 -0.1142)
OKLCHoklch(54.97% 0.216 328)
XYZxyz(26.3937, 14.1650, 41.8931)
Luminance0.1416 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2EAF #2EAF2E
analogous
#6E2EAF #AF2EAF #AF2E6E
triadic
#AF2EAF #AFAF2E #2EAFAF
tetradic
#AF2EAF #AF6E2E #2EAF2E #2E6EAF
square
#AF2EAF #AF6E2E #2EAF2E #2E6EAF
split-complementary
#AF2EAF #6EAF2E #2EAF6E
monochromatic
#4E154E #7F217F #AF2EAF #D04BD0 #DC7BDC

Accessibility & contrast

On white

5.48
#AF2EAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#AF2EAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2EAF
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2EAF#FFFFFF#000000##FFFFFF
##AF2EAF1.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#125EB3
Deuteranopia (green-blind)
#516FAC
Tritanopia (blue-blind)
#B5426C
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #af2eaf;
/* rgb */ color: rgb(175, 46, 175);
/* oklch */ color: oklch(55.0% 0.216 328.0);
Tailwind
colors: {
  custom: {
    50: '#cb75c7',
    500: '#af2eaf',
    950: '#000000',
  },
}
SCSS
$custom: #af2eaf;
$custom-light: #cb75c7;
$custom-dark: #000000;
JSON
{
  "hex": "#af2eaf",
  "rgb": {
    "r": 175,
    "g": 46,
    "b": 175
  },
  "hsl": {
    "h": 300,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.54974,
    "c": 0.21566,
    "h": 328
  },
  "luminance": 0.14163
}

Semantic roles & 50–950 ramp

primary
#AF2EAF
secondary
#74C574
accent
#E24646
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AF2EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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