#AF2EB4#AF2EB4

#AF2EB4 is a mid, highly saturated purple. Relative luminance 0.144; OKLCH L 55.3% C 0.220 H 326.4°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#AF2EB4
RGBrgb(175, 46, 180)
HSLhsl(298, 59%, 44%)
HSVhsv(298, 74%, 71%)
CMYKcmyk(2.8%, 74.4%, 0%, 29.4%)
CIE-LABlab(44.75, 66.39, -43.71)
CIE-LCHlch(44.75, 79.49, 326.64°)
OKLaboklab(55.27% 0.1829 -0.1215)
OKLCHoklch(55.27% 0.22 326.4)
XYZxyz(26.8939, 14.3651, 44.5274)
Luminance0.1436 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2EB4 #33B42E
analogous
#6C2EB4 #AF2EB4 #B42E76
triadic
#AF2EB4 #B4AF2E #2EB4AF
tetradic
#AF2EB4 #B46C2E #33B42E #2E76B4
square
#AF2EB4 #B46C2E #33B42E #2E76B4
split-complementary
#AF2EB4 #76B42E #2EB46C
monochromatic
#501553 #802283 #AF2EB4 #CD4ED2 #DB7EDE

Accessibility & contrast

On white

5.42
#AF2EB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#AF2EB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2EB4
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2EB4#FFFFFF#000000##FFFFFF
##AF2EB41.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0260B8
Deuteranopia (green-blind)
#4E6FB1
Tritanopia (blue-blind)
#B4456F
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af2eb4;
/* rgb */ color: rgb(175, 46, 180);
/* oklch */ color: oklch(55.3% 0.220 326.4);
Tailwind
colors: {
  custom: {
    50: '#cb75cb',
    500: '#af2eb4',
    950: '#000000',
  },
}
SCSS
$custom: #af2eb4;
$custom-light: #cb75cb;
$custom-dark: #000000;
JSON
{
  "hex": "#af2eb4",
  "rgb": {
    "r": 175,
    "g": 46,
    "b": 180
  },
  "hsl": {
    "h": 297.761,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.55268,
    "c": 0.21952,
    "h": 326.4
  },
  "luminance": 0.14363
}

Semantic roles & 50–950 ramp

primary
#AF2EB4
secondary
#7AC777
accent
#E2454B
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AF2EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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