#AF3EAB#AF3EAB

#AF3EAB is a mid, vivid purple. Relative luminance 0.155; OKLCH L 56.2% C 0.194 H 329.2°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#AF3EAB
RGBrgb(175, 62, 171)
HSLhsl(302, 48%, 46%)
HSVhsv(302, 65%, 69%)
CMYKcmyk(0%, 64.6%, 2.3%, 31.4%)
CIE-LABlab(46.31, 59.08, -35.93)
CIE-LCHlch(46.31, 69.15, 328.70°)
OKLaboklab(56.23% 0.1663 -0.099)
OKLCHoklch(56.23% 0.194 329.2)
XYZxyz(26.7523, 15.5014, 40.1032)
Luminance0.1550 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3EAB #3EAF42
analogous
#7B3EAF #AF3EAB #AF3E73
triadic
#AF3EAB #ABAF3E #3EABAF
tetradic
#AF3EAB #AF7B3E #3EAF42 #3E73AF
square
#AF3EAB #AF7B3E #3EAF42 #3E73AF
split-complementary
#AF3EAB #73AF3E #3EAF7B
monochromatic
#551E53 #822E7F #AF3EAB #C863C4 #D890D5

Accessibility & contrast

On white

5.12
#AF3EAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#AF3EAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3EAB
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3EAB#FFFFFF#000000##FFFFFF
##AF3EAB1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3364AE
Deuteranopia (green-blind)
#5C73A8
Tritanopia (blue-blind)
#B54C6F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #af3eab;
/* rgb */ color: rgb(175, 62, 171);
/* oklch */ color: oklch(56.2% 0.194 329.2);
Tailwind
colors: {
  custom: {
    50: '#ca7cc4',
    500: '#af3eab',
    950: '#000000',
  },
}
SCSS
$custom: #af3eab;
$custom-light: #ca7cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#af3eab",
  "rgb": {
    "r": 175,
    "g": 62,
    "b": 171
  },
  "hsl": {
    "h": 302.124,
    "s": 47.679,
    "l": 46.471
  },
  "oklch": {
    "l": 0.56232,
    "c": 0.19354,
    "h": 329.2
  },
  "luminance": 0.15499
}

Semantic roles & 50–950 ramp

primary
#AF3EAB
secondary
#86C388
accent
#D75551
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF3EAB

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

Preview Lab → · Contrast checker → · Palette generator →

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