#AF3EA7#AF3EA7

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

Color values

HEX#AF3EA7
RGBrgb(175, 62, 167)
HSLhsl(304, 48%, 46%)
HSVhsv(304, 65%, 69%)
CMYKcmyk(0%, 64.6%, 4.6%, 31.4%)
CIE-LABlab(46.11, 58.41, -33.88)
CIE-LCHlch(46.11, 67.53, 329.89°)
OKLaboklab(56.02% 0.166 -0.0931)
OKLCHoklch(56.02% 0.19 330.7)
XYZxyz(26.3768, 15.3512, 38.1255)
Luminance0.1535 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3EA7 #3EAF46
analogous
#7F3EAF #AF3EA7 #AF3E6F
triadic
#AF3EA7 #A7AF3E #3EA7AF
tetradic
#AF3EA7 #AF7F3E #3EAF46 #3E6FAF
square
#AF3EA7 #AF7F3E #3EAF46 #3E6FAF
split-complementary
#AF3EA7 #6FAF3E #3EAF7F
monochromatic
#551E51 #822E7C #AF3EA7 #C863C0 #D890D3

Accessibility & contrast

On white

5.16
#AF3EA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#AF3EA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3EA7
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3EA7#FFFFFF#000000##FFFFFF
##AF3EA71.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3663AA
Deuteranopia (green-blind)
#5E73A4
Tritanopia (blue-blind)
#B64A6D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #af3ea7;
/* rgb */ color: rgb(175, 62, 167);
/* oklch */ color: oklch(56.0% 0.190 330.7);
Tailwind
colors: {
  custom: {
    50: '#ca7cc1',
    500: '#af3ea7',
    950: '#000000',
  },
}
SCSS
$custom: #af3ea7;
$custom-light: #ca7cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#af3ea7",
  "rgb": {
    "r": 175,
    "g": 62,
    "b": 167
  },
  "hsl": {
    "h": 304.248,
    "s": 47.679,
    "l": 46.471
  },
  "oklch": {
    "l": 0.5602,
    "c": 0.19031,
    "h": 330.7
  },
  "luminance": 0.15349
}

Semantic roles & 50–950 ramp

primary
#AF3EA7
secondary
#86C38A
accent
#D75A51
background
#FCF7FB
surface
#F9EEF7
border
#D2C9D0
text
#140A12
muted
#827C81

Preview Lab

Preview with #AF3EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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