#AF2EB7#AF2EB7

#AF2EB7 is a mid, highly saturated purple. Relative luminance 0.145; OKLCH L 55.4% C 0.222 H 325.5°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#AF2EB7
RGBrgb(175, 46, 183)
HSLhsl(296, 60%, 45%)
HSVhsv(296, 75%, 72%)
CMYKcmyk(4.4%, 74.9%, 0%, 28.2%)
CIE-LABlab(44.93, 66.89, -45.19)
CIE-LCHlch(44.93, 80.73, 325.96°)
OKLaboklab(55.45% 0.1827 -0.1258)
OKLCHoklch(55.45% 0.222 325.5)
XYZxyz(27.2028, 14.4887, 46.1544)
Luminance0.1449 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2EB7 #36B72E
analogous
#6A2EB7 #AF2EB7 #B72E7B
triadic
#AF2EB7 #B7AF2E #2EB7AF
tetradic
#AF2EB7 #B76A2E #36B72E #2E7BB7
square
#AF2EB7 #B76A2E #36B72E #2E7BB7
split-complementary
#AF2EB7 #7BB72E #2EB76A
monochromatic
#511555 #802286 #AF2EB7 #CB4FD3 #DA80DF

Accessibility & contrast

On white

5.39
#AF2EB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#AF2EB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2EB7
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2EB7#FFFFFF#000000##FFFFFF
##AF2EB71.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BB
Deuteranopia (green-blind)
#4C70B4
Tritanopia (blue-blind)
#B34671
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af2eb7;
/* rgb */ color: rgb(175, 46, 183);
/* oklch */ color: oklch(55.4% 0.222 325.5);
Tailwind
colors: {
  custom: {
    50: '#cb75cd',
    500: '#af2eb7',
    950: '#000000',
  },
}
SCSS
$custom: #af2eb7;
$custom-light: #cb75cd;
$custom-dark: #000000;
JSON
{
  "hex": "#af2eb7",
  "rgb": {
    "r": 175,
    "g": 46,
    "b": 183
  },
  "hsl": {
    "h": 296.496,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.55447,
    "c": 0.22185,
    "h": 325.5
  },
  "luminance": 0.14487
}

Semantic roles & 50–950 ramp

primary
#AF2EB7
secondary
#7DC879
accent
#E3454E
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140913
muted
#827B82

Preview Lab

Preview with #AF2EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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