#AF2EB1#AF2EB1

#AF2EB1 is a mid, highly saturated purple. Relative luminance 0.142; OKLCH L 55.1% C 0.217 H 327.4°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#AF2EB1
RGBrgb(175, 46, 177)
HSLhsl(299, 59%, 44%)
HSVhsv(299, 74%, 69%)
CMYKcmyk(1.1%, 74%, 0%, 30.6%)
CIE-LABlab(44.58, 65.89, -42.21)
CIE-LCHlch(44.58, 78.25, 327.36°)
OKLaboklab(55.09% 0.1829 -0.1171)
OKLCHoklch(55.09% 0.217 327.4)
XYZxyz(26.5916, 14.2442, 42.9353)
Luminance0.1424 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2EB1 #30B12E
analogous
#6D2EB1 #AF2EB1 #B12E71
triadic
#AF2EB1 #B1AF2E #2EB1AF
tetradic
#AF2EB1 #B16D2E #30B12E #2E71B1
square
#AF2EB1 #B16D2E #30B12E #2E71B1
split-complementary
#AF2EB1 #71B12E #2EB16D
monochromatic
#4F1550 #7F2180 #AF2EB1 #CE4CD0 #DC7CDD

Accessibility & contrast

On white

5.46
#AF2EB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#AF2EB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2EB1
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2EB1#FFFFFF#000000##FFFFFF
##AF2EB11.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D5FB5
Deuteranopia (green-blind)
#506FAE
Tritanopia (blue-blind)
#B4436E
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #af2eb1;
/* rgb */ color: rgb(175, 46, 177);
/* oklch */ color: oklch(55.1% 0.217 327.4);
Tailwind
colors: {
  custom: {
    50: '#cb75c9',
    500: '#af2eb1',
    950: '#000000',
  },
}
SCSS
$custom: #af2eb1;
$custom-light: #cb75c9;
$custom-dark: #000000;
JSON
{
  "hex": "#af2eb1",
  "rgb": {
    "r": 175,
    "g": 46,
    "b": 177
  },
  "hsl": {
    "h": 299.084,
    "s": 58.744,
    "l": 43.725
  },
  "oklch": {
    "l": 0.55091,
    "c": 0.2172,
    "h": 327.4
  },
  "luminance": 0.14242
}

Semantic roles & 50–950 ramp

primary
#AF2EB1
secondary
#76C675
accent
#E24648
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AF2EB1

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

Preview Lab → · Contrast checker → · Palette generator →

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