#AF2EA9#AF2EA9

#AF2EA9 is a mid, highly saturated purple. Relative luminance 0.139; OKLCH L 54.6% C 0.211 H 330.0°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#AF2EA9
RGBrgb(175, 46, 169)
HSLhsl(303, 58%, 43%)
HSVhsv(303, 74%, 69%)
CMYKcmyk(0%, 73.7%, 3.4%, 31.4%)
CIE-LABlab(44.14, 64.59, -38.18)
CIE-LCHlch(44.14, 75.03, 329.42°)
OKLaboklab(54.63% 0.1829 -0.1054)
OKLCHoklch(54.63% 0.211 330)
XYZxyz(25.8175, 13.9345, 38.8583)
Luminance0.1393 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2EA9 #2EAF34
analogous
#742EAF #AF2EA9 #AF2E68
triadic
#AF2EA9 #A9AF2E #2EA9AF
tetradic
#AF2EA9 #AF742E #2EAF34 #2E68AF
square
#AF2EA9 #AF742E #2EAF34 #2E68AF
split-complementary
#AF2EA9 #68AF2E #2EAF74
monochromatic
#4E154B #7F217A #AF2EA9 #D04BC9 #DC7BD8

Accessibility & contrast

On white

5.55
#AF2EA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF2EA9
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2EA9#FFFFFF#000000##FFFFFF
##AF2EA91.005.553.795.55
#FFFFFF5.551.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E5DAC
Deuteranopia (green-blind)
#556EA6
Tritanopia (blue-blind)
#B63F69
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af2ea9;
/* rgb */ color: rgb(175, 46, 169);
/* oklch */ color: oklch(54.6% 0.211 330.0);
Tailwind
colors: {
  custom: {
    50: '#cb74c3',
    500: '#af2ea9',
    950: '#000000',
  },
}
SCSS
$custom: #af2ea9;
$custom-light: #cb74c3;
$custom-dark: #000000;
JSON
{
  "hex": "#af2ea9",
  "rgb": {
    "r": 175,
    "g": 46,
    "b": 169
  },
  "hsl": {
    "h": 302.791,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.54632,
    "c": 0.21111,
    "h": 330
  },
  "luminance": 0.13933
}

Semantic roles & 50–950 ramp

primary
#AF2EA9
secondary
#74C578
accent
#E24D46
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140912
muted
#827B81

Preview Lab

Preview with #AF2EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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