#AF2EB3#AF2EB3

#AF2EB3 is a mid, highly saturated purple. Relative luminance 0.143; OKLCH L 55.2% C 0.219 H 326.7°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#AF2EB3
RGBrgb(175, 46, 179)
HSLhsl(298, 59%, 44%)
HSVhsv(298, 74%, 70%)
CMYKcmyk(2.2%, 74.3%, 0%, 29.8%)
CIE-LABlab(44.69, 66.22, -43.21)
CIE-LCHlch(44.69, 79.07, 326.88°)
OKLaboklab(55.21% 0.1829 -0.12)
OKLCHoklch(55.21% 0.219 326.7)
XYZxyz(26.7924, 14.3245, 43.9928)
Luminance0.1432 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2EB3 #32B32E
analogous
#6C2EB3 #AF2EB3 #B32E75
triadic
#AF2EB3 #B3AF2E #2EB3AF
tetradic
#AF2EB3 #B36C2E #32B32E #2E75B3
square
#AF2EB3 #B36C2E #32B32E #2E75B3
split-complementary
#AF2EB3 #75B32E #2EB36C
monochromatic
#501552 #7F2182 #AF2EB3 #CD4DD1 #DB7EDE

Accessibility & contrast

On white

5.43
#AF2EB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#AF2EB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2EB3
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2EB3#FFFFFF#000000##FFFFFF
##AF2EB31.005.433.865.43
#FFFFFF5.431.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#065FB7
Deuteranopia (green-blind)
#4F6FB0
Tritanopia (blue-blind)
#B4446F
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af2eb3;
/* rgb */ color: rgb(175, 46, 179);
/* oklch */ color: oklch(55.2% 0.219 326.7);
Tailwind
colors: {
  custom: {
    50: '#cb75ca',
    500: '#af2eb3',
    950: '#000000',
  },
}
SCSS
$custom: #af2eb3;
$custom-light: #cb75ca;
$custom-dark: #000000;
JSON
{
  "hex": "#af2eb3",
  "rgb": {
    "r": 175,
    "g": 46,
    "b": 179
  },
  "hsl": {
    "h": 298.195,
    "s": 59.111,
    "l": 44.118
  },
  "oklch": {
    "l": 0.55208,
    "c": 0.21874,
    "h": 326.7
  },
  "luminance": 0.14323
}

Semantic roles & 50–950 ramp

primary
#AF2EB3
secondary
#79C676
accent
#E2464A
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AF2EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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