#AF3EA2#AF3EA2

#AF3EA2 is a mid, vivid purple. Relative luminance 0.152; OKLCH L 55.8% C 0.186 H 332.6°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#AF3EA2
RGBrgb(175, 62, 162)
HSLhsl(307, 48%, 46%)
HSVhsv(307, 65%, 69%)
CMYKcmyk(0%, 64.6%, 7.4%, 31.4%)
CIE-LABlab(45.87, 57.59, -31.29)
CIE-LCHlch(45.87, 65.55, 331.48°)
OKLaboklab(55.76% 0.1655 -0.0857)
OKLCHoklch(55.76% 0.186 332.6)
XYZxyz(25.9235, 15.1698, 35.7381)
Luminance0.1517 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3EA2 #3EAF4B
analogous
#843EAF #AF3EA2 #AF3E6A
triadic
#AF3EA2 #A2AF3E #3EA2AF
tetradic
#AF3EA2 #AF843E #3EAF4B #3E6AAF
square
#AF3EA2 #AF843E #3EAF4B #3E6AAF
split-complementary
#AF3EA2 #6AAF3E #3EAF84
monochromatic
#551E4E #822E78 #AF3EA2 #C863BC #D890CF

Accessibility & contrast

On white

5.21
#AF3EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#AF3EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3EA2
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3EA2#FFFFFF#000000##FFFFFF
##AF3EA21.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A62A5
Deuteranopia (green-blind)
#60729F
Tritanopia (blue-blind)
#B6486A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #af3ea2;
/* rgb */ color: rgb(175, 62, 162);
/* oklch */ color: oklch(55.8% 0.186 332.6);
Tailwind
colors: {
  custom: {
    50: '#ca7bbe',
    500: '#af3ea2',
    950: '#000000',
  },
}
SCSS
$custom: #af3ea2;
$custom-light: #ca7bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#af3ea2",
  "rgb": {
    "r": 175,
    "g": 62,
    "b": 162
  },
  "hsl": {
    "h": 306.903,
    "s": 47.679,
    "l": 46.471
  },
  "oklch": {
    "l": 0.55762,
    "c": 0.18635,
    "h": 332.6
  },
  "luminance": 0.15168
}

Semantic roles & 50–950 ramp

primary
#AF3EA2
secondary
#86C38D
accent
#D76051
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140A12
muted
#827C81

Preview Lab

Preview with #AF3EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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