#AF3EA9#AF3EA9

#AF3EA9 is a mid, vivid purple. Relative luminance 0.154; OKLCH L 56.1% C 0.192 H 330.0°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#AF3EA9
RGBrgb(175, 62, 169)
HSLhsl(303, 48%, 46%)
HSVhsv(303, 65%, 69%)
CMYKcmyk(0%, 64.6%, 3.4%, 31.4%)
CIE-LABlab(46.21, 58.75, -34.90)
CIE-LCHlch(46.21, 68.33, 329.28°)
OKLaboklab(56.13% 0.1662 -0.0961)
OKLCHoklch(56.13% 0.192 330)
XYZxyz(26.5631, 15.4257, 39.1068)
Luminance0.1542 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3EA9 #3EAF44
analogous
#7D3EAF #AF3EA9 #AF3E71
triadic
#AF3EA9 #A9AF3E #3EA9AF
tetradic
#AF3EA9 #AF7D3E #3EAF44 #3E71AF
square
#AF3EA9 #AF7D3E #3EAF44 #3E71AF
split-complementary
#AF3EA9 #71AF3E #3EAF7D
monochromatic
#551E52 #822E7D #AF3EA9 #C863C2 #D890D4

Accessibility & contrast

On white

5.14
#AF3EA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#AF3EA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3EA9
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3EA9#FFFFFF#000000##FFFFFF
##AF3EA91.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3464AC
Deuteranopia (green-blind)
#5D73A6
Tritanopia (blue-blind)
#B54B6E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #af3ea9;
/* rgb */ color: rgb(175, 62, 169);
/* oklch */ color: oklch(56.1% 0.192 330.0);
Tailwind
colors: {
  custom: {
    50: '#ca7cc3',
    500: '#af3ea9',
    950: '#000000',
  },
}
SCSS
$custom: #af3ea9;
$custom-light: #ca7cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#af3ea9",
  "rgb": {
    "r": 175,
    "g": 62,
    "b": 169
  },
  "hsl": {
    "h": 303.186,
    "s": 47.679,
    "l": 46.471
  },
  "oklch": {
    "l": 0.56126,
    "c": 0.19192,
    "h": 330
  },
  "luminance": 0.15424
}

Semantic roles & 50–950 ramp

primary
#AF3EA9
secondary
#86C389
accent
#D75851
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A12
muted
#827C81

Preview Lab

Preview with #AF3EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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