#AF2EA0#AF2EA0

#AF2EA0 is a mid, highly saturated purple. Relative luminance 0.136; OKLCH L 54.1% C 0.204 H 333.2°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#AF2EA0
RGBrgb(175, 46, 160)
HSLhsl(307, 58%, 43%)
HSVhsv(307, 74%, 69%)
CMYKcmyk(0%, 73.7%, 8.6%, 31.4%)
CIE-LABlab(43.67, 63.19, -33.56)
CIE-LCHlch(43.67, 71.54, 332.03°)
OKLaboklab(54.14% 0.1826 -0.0921)
OKLCHoklch(54.14% 0.204 333.2)
XYZxyz(25.0015, 13.6081, 34.5608)
Luminance0.1361 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2EA0 #2EAF3D
analogous
#7D2EAF #AF2EA0 #AF2E5F
triadic
#AF2EA0 #A0AF2E #2EA0AF
tetradic
#AF2EA0 #AF7D2E #2EAF3D #2E5FAF
square
#AF2EA0 #AF7D2E #2EAF3D #2E5FAF
split-complementary
#AF2EA0 #5FAF2E #2EAF7D
monochromatic
#4E1547 #7F2174 #AF2EA0 #D04BC0 #DC7BD1

Accessibility & contrast

On white

5.64
#AF2EA0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#AF2EA0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2EA0
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2EA0#FFFFFF#000000##FFFFFF
##AF2EA01.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295BA3
Deuteranopia (green-blind)
#596E9D
Tritanopia (blue-blind)
#B73B64
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af2ea0;
/* rgb */ color: rgb(175, 46, 160);
/* oklch */ color: oklch(54.1% 0.204 333.2);
Tailwind
colors: {
  custom: {
    50: '#cb74bc',
    500: '#af2ea0',
    950: '#000000',
  },
}
SCSS
$custom: #af2ea0;
$custom-light: #cb74bc;
$custom-dark: #000000;
JSON
{
  "hex": "#af2ea0",
  "rgb": {
    "r": 175,
    "g": 46,
    "b": 160
  },
  "hsl": {
    "h": 306.977,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.54139,
    "c": 0.20445,
    "h": 333.2
  },
  "luminance": 0.13606
}

Semantic roles & 50–950 ramp

primary
#AF2EA0
secondary
#74C57D
accent
#E25846
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF2EA0

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

Preview Lab → · Contrast checker → · Palette generator →

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