#AF2EA7#AF2EA7

#AF2EA7 is a mid, highly saturated purple. Relative luminance 0.139; OKLCH L 54.5% C 0.210 H 330.7°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#AF2EA7
RGBrgb(175, 46, 167)
HSLhsl(304, 58%, 43%)
HSVhsv(304, 74%, 69%)
CMYKcmyk(0%, 73.7%, 4.6%, 31.4%)
CIE-LABlab(44.03, 64.28, -37.16)
CIE-LCHlch(44.03, 74.24, 329.97°)
OKLaboklab(54.52% 0.1829 -0.1024)
OKLCHoklch(54.52% 0.21 330.7)
XYZxyz(25.6312, 13.8600, 37.8770)
Luminance0.1386 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2EA7 #2EAF36
analogous
#762EAF #AF2EA7 #AF2E66
triadic
#AF2EA7 #A7AF2E #2EA7AF
tetradic
#AF2EA7 #AF762E #2EAF36 #2E66AF
square
#AF2EA7 #AF762E #2EAF36 #2E66AF
split-complementary
#AF2EA7 #66AF2E #2EAF76
monochromatic
#4E154B #7F2179 #AF2EA7 #D04BC7 #DC7BD6

Accessibility & contrast

On white

5.57
#AF2EA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#AF2EA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2EA7
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2EA7#FFFFFF#000000##FFFFFF
##AF2EA71.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215DAA
Deuteranopia (green-blind)
#566EA4
Tritanopia (blue-blind)
#B63E68
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af2ea7;
/* rgb */ color: rgb(175, 46, 167);
/* oklch */ color: oklch(54.5% 0.210 330.7);
Tailwind
colors: {
  custom: {
    50: '#cb74c1',
    500: '#af2ea7',
    950: '#000000',
  },
}
SCSS
$custom: #af2ea7;
$custom-light: #cb74c1;
$custom-dark: #000000;
JSON
{
  "hex": "#af2ea7",
  "rgb": {
    "r": 175,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 303.721,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.5452,
    "c": 0.20961,
    "h": 330.7
  },
  "luminance": 0.13858
}

Semantic roles & 50–950 ramp

primary
#AF2EA7
secondary
#74C579
accent
#E25046
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF2EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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