#AF3EA4#AF3EA4

#AF3EA4 is a mid, vivid purple. Relative luminance 0.152; OKLCH L 55.9% C 0.188 H 331.9°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#AF3EA4
RGBrgb(175, 62, 164)
HSLhsl(306, 48%, 46%)
HSVhsv(306, 65%, 69%)
CMYKcmyk(0%, 64.6%, 6.3%, 31.4%)
CIE-LABlab(45.96, 57.92, -32.33)
CIE-LCHlch(45.96, 66.33, 330.83°)
OKLaboklab(55.86% 0.1657 -0.0887)
OKLCHoklch(55.86% 0.188 331.9)
XYZxyz(26.1026, 15.2415, 36.6819)
Luminance0.1524 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3EA4 #3EAF49
analogous
#823EAF #AF3EA4 #AF3E6C
triadic
#AF3EA4 #A4AF3E #3EA4AF
tetradic
#AF3EA4 #AF823E #3EAF49 #3E6CAF
square
#AF3EA4 #AF823E #3EAF49 #3E6CAF
split-complementary
#AF3EA4 #6CAF3E #3EAF82
monochromatic
#551E4F #822E7A #AF3EA4 #C863BE #D890D1

Accessibility & contrast

On white

5.19
#AF3EA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#AF3EA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3EA4
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3EA4#FFFFFF#000000##FFFFFF
##AF3EA41.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3863A7
Deuteranopia (green-blind)
#5F73A1
Tritanopia (blue-blind)
#B6496B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #af3ea4;
/* rgb */ color: rgb(175, 62, 164);
/* oklch */ color: oklch(55.9% 0.188 331.9);
Tailwind
colors: {
  custom: {
    50: '#ca7bbf',
    500: '#af3ea4',
    950: '#000000',
  },
}
SCSS
$custom: #af3ea4;
$custom-light: #ca7bbf;
$custom-dark: #000000;
JSON
{
  "hex": "#af3ea4",
  "rgb": {
    "r": 175,
    "g": 62,
    "b": 164
  },
  "hsl": {
    "h": 305.841,
    "s": 47.679,
    "l": 46.471
  },
  "oklch": {
    "l": 0.55865,
    "c": 0.18792,
    "h": 331.9
  },
  "luminance": 0.1524
}

Semantic roles & 50–950 ramp

primary
#AF3EA4
secondary
#86C38C
accent
#D75E51
background
#FCF7FB
surface
#F9EEF7
border
#D2C9D0
text
#140A12
muted
#827C81

Preview Lab

Preview with #AF3EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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