#AF2EA3#AF2EA3

#AF2EA3 is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.3% C 0.207 H 332.2°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#AF2EA3
RGBrgb(175, 46, 163)
HSLhsl(306, 58%, 43%)
HSVhsv(306, 74%, 69%)
CMYKcmyk(0%, 73.7%, 6.9%, 31.4%)
CIE-LABlab(43.82, 63.65, -35.11)
CIE-LCHlch(43.82, 72.69, 331.12°)
OKLaboklab(54.3% 0.1827 -0.0965)
OKLCHoklch(54.3% 0.207 332.2)
XYZxyz(25.2671, 13.7144, 35.9596)
Luminance0.1371 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2EA3 #2EAF3A
analogous
#7A2EAF #AF2EA3 #AF2E63
triadic
#AF2EA3 #A3AF2E #2EA3AF
tetradic
#AF2EA3 #AF7A2E #2EAF3A #2E63AF
square
#AF2EA3 #AF7A2E #2EAF3A #2E63AF
split-complementary
#AF2EA3 #63AF2E #2EAF7A
monochromatic
#4E1549 #7F2176 #AF2EA3 #D04BC3 #DC7BD3

Accessibility & contrast

On white

5.61
#AF2EA3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#AF2EA3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2EA3
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2EA3#FFFFFF#000000##FFFFFF
##AF2EA31.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265CA6
Deuteranopia (green-blind)
#586EA0
Tritanopia (blue-blind)
#B73C66
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af2ea3;
/* rgb */ color: rgb(175, 46, 163);
/* oklch */ color: oklch(54.3% 0.207 332.2);
Tailwind
colors: {
  custom: {
    50: '#cb74be',
    500: '#af2ea3',
    950: '#000000',
  },
}
SCSS
$custom: #af2ea3;
$custom-light: #cb74be;
$custom-dark: #000000;
JSON
{
  "hex": "#af2ea3",
  "rgb": {
    "r": 175,
    "g": 46,
    "b": 163
  },
  "hsl": {
    "h": 305.581,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.543,
    "c": 0.20665,
    "h": 332.2
  },
  "luminance": 0.13712
}

Semantic roles & 50–950 ramp

primary
#AF2EA3
secondary
#74C57C
accent
#E25546
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF2EA3

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

Preview Lab → · Contrast checker → · Palette generator →

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