#AF2EC9#AF2EC9

#AF2EC9 is a mid, highly saturated purple. Relative luminance 0.153; OKLCH L 56.6% C 0.236 H 320.1°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#AF2EC9
RGBrgb(175, 46, 201)
HSLhsl(290, 63%, 48%)
HSVhsv(290, 77%, 79%)
CMYKcmyk(12.9%, 77.1%, 0%, 21.2%)
CIE-LABlab(46.02, 70.02, -53.93)
CIE-LCHlch(46.02, 88.38, 322.40°)
OKLaboklab(56.58% 0.1813 -0.1513)
OKLCHoklch(56.58% 0.236 320.1)
XYZxyz(29.1975, 15.2865, 56.6597)
Luminance0.1529 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2EC9 #48C92E
analogous
#612EC9 #AF2EC9 #C92E96
triadic
#AF2EC9 #C9AF2E #2EC9AF
tetradic
#AF2EC9 #C9612E #48C92E #2E96C9
square
#AF2EC9 #C9612E #48C92E #2E96C9
split-complementary
#AF2EC9 #96C92E #2EC961
monochromatic
#581765 #842397 #AF2EC9 #C45BD9 #D68DE5

Accessibility & contrast

On white

5.18
#AF2EC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#AF2EC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2EC9
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2EC9#FFFFFF#000000##FFFFFF
##AF2EC91.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CD
Deuteranopia (green-blind)
#3E71C6
Tritanopia (blue-blind)
#B04F7B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #af2ec9;
/* rgb */ color: rgb(175, 46, 201);
/* oklch */ color: oklch(56.6% 0.236 320.1);
Tailwind
colors: {
  custom: {
    50: '#cb76da',
    500: '#af2ec9',
    950: '#000000',
  },
}
SCSS
$custom: #af2ec9;
$custom-light: #cb76da;
$custom-dark: #000000;
JSON
{
  "hex": "#af2ec9",
  "rgb": {
    "r": 175,
    "g": 46,
    "b": 201
  },
  "hsl": {
    "h": 289.935,
    "s": 62.753,
    "l": 48.431
  },
  "oklch": {
    "l": 0.56578,
    "c": 0.23616,
    "h": 320.1
  },
  "luminance": 0.15285
}

Semantic roles & 50–950 ramp

primary
#AF2EC9
secondary
#90CF84
accent
#E6425D
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140915
muted
#837B83

Preview Lab

Preview with #AF2EC9

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

Preview Lab → · Contrast checker → · Palette generator →

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