#AF2EAC#AF2EAC

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

Color values

HEX#AF2EAC
RGBrgb(175, 46, 172)
HSLhsl(301, 58%, 43%)
HSVhsv(301, 74%, 69%)
CMYKcmyk(0%, 73.7%, 1.7%, 31.4%)
CIE-LABlab(44.30, 65.08, -39.70)
CIE-LCHlch(44.30, 76.23, 328.62°)
OKLaboklab(54.8% 0.183 -0.1098)
OKLCHoklch(54.8% 0.213 329)
XYZxyz(26.1024, 14.0485, 40.3586)
Luminance0.1405 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2EAC #2EAF31
analogous
#712EAF #AF2EAC #AF2E6B
triadic
#AF2EAC #ACAF2E #2EACAF
tetradic
#AF2EAC #AF712E #2EAF31 #2E6BAF
square
#AF2EAC #AF712E #2EAF31 #2E6BAF
split-complementary
#AF2EAC #6BAF2E #2EAF71
monochromatic
#4E154D #7F217C #AF2EAC #D04BCC #DC7BDA

Accessibility & contrast

On white

5.51
#AF2EAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#AF2EAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2EAC
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2EAC#FFFFFF#000000##FFFFFF
##AF2EAC1.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#195EAF
Deuteranopia (green-blind)
#536FA9
Tritanopia (blue-blind)
#B5416B
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #af2eac;
/* rgb */ color: rgb(175, 46, 172);
/* oklch */ color: oklch(54.8% 0.213 329.0);
Tailwind
colors: {
  custom: {
    50: '#cb74c5',
    500: '#af2eac',
    950: '#000000',
  },
}
SCSS
$custom: #af2eac;
$custom-light: #cb74c5;
$custom-dark: #000000;
JSON
{
  "hex": "#af2eac",
  "rgb": {
    "r": 175,
    "g": 46,
    "b": 172
  },
  "hsl": {
    "h": 301.395,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.54801,
    "c": 0.21338,
    "h": 329
  },
  "luminance": 0.14047
}

Semantic roles & 50–950 ramp

primary
#AF2EAC
secondary
#74C576
accent
#E24A46
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AF2EAC

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

Preview Lab → · Contrast checker → · Palette generator →

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