#AF3EA6#AF3EA6

#AF3EA6 is a mid, vivid purple. Relative luminance 0.153; OKLCH L 56.0% C 0.190 H 331.1°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#AF3EA6
RGBrgb(175, 62, 166)
HSLhsl(305, 48%, 46%)
HSVhsv(305, 65%, 69%)
CMYKcmyk(0%, 64.6%, 5.1%, 31.4%)
CIE-LABlab(46.06, 58.25, -33.36)
CIE-LCHlch(46.06, 67.13, 330.20°)
OKLaboklab(55.97% 0.1659 -0.0916)
OKLCHoklch(55.97% 0.19 331.1)
XYZxyz(26.2847, 15.3143, 37.6406)
Luminance0.1531 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3EA6 #3EAF47
analogous
#803EAF #AF3EA6 #AF3E6E
triadic
#AF3EA6 #A6AF3E #3EA6AF
tetradic
#AF3EA6 #AF803E #3EAF47 #3E6EAF
square
#AF3EA6 #AF803E #3EAF47 #3E6EAF
split-complementary
#AF3EA6 #6EAF3E #3EAF80
monochromatic
#551E50 #822E7B #AF3EA6 #C863C0 #D890D2

Accessibility & contrast

On white

5.17
#AF3EA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF3EA6
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3EA6#FFFFFF#000000##FFFFFF
##AF3EA61.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3763A9
Deuteranopia (green-blind)
#5E73A3
Tritanopia (blue-blind)
#B6496C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #af3ea6;
/* rgb */ color: rgb(175, 62, 166);
/* oklch */ color: oklch(56.0% 0.190 331.1);
Tailwind
colors: {
  custom: {
    50: '#ca7cc1',
    500: '#af3ea6',
    950: '#000000',
  },
}
SCSS
$custom: #af3ea6;
$custom-light: #ca7cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#af3ea6",
  "rgb": {
    "r": 175,
    "g": 62,
    "b": 166
  },
  "hsl": {
    "h": 304.779,
    "s": 47.679,
    "l": 46.471
  },
  "oklch": {
    "l": 0.55968,
    "c": 0.18951,
    "h": 331.1
  },
  "luminance": 0.15312
}

Semantic roles & 50–950 ramp

primary
#AF3EA6
secondary
#86C38B
accent
#D75B51
background
#FCF7FB
surface
#F9EEF7
border
#D2C9D0
text
#140A12
muted
#827C81

Preview Lab

Preview with #AF3EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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