#AF40AE#AF40AE

#AF40AE is a mid, vivid purple. Relative luminance 0.158; OKLCH L 56.6% C 0.193 H 328.1°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#AF40AE
RGBrgb(175, 64, 174)
HSLhsl(301, 46%, 47%)
HSVhsv(301, 63%, 69%)
CMYKcmyk(0%, 63.4%, 0.6%, 31.4%)
CIE-LABlab(46.76, 58.77, -36.99)
CIE-LCHlch(46.76, 69.44, 327.82°)
OKLaboklab(56.61% 0.1642 -0.1021)
OKLCHoklch(56.61% 0.193 328.1)
XYZxyz(27.1522, 15.8386, 41.6632)
Luminance0.1584 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF40AE #40AF41
analogous
#7940AF #AF40AE #AF4076
triadic
#AF40AE #AEAF40 #40AEAF
tetradic
#AF40AE #AF7940 #40AF41 #4076AF
square
#AF40AE #AF7940 #40AF41 #4076AF
split-complementary
#AF40AE #76AF40 #40AF79
monochromatic
#551F55 #823081 #AF40AE #C765C6 #D792D7

Accessibility & contrast

On white

5.04
#AF40AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#AF40AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF40AE
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF40AE#FFFFFF#000000##FFFFFF
##AF40AE1.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3365B1
Deuteranopia (green-blind)
#5B74AB
Tritanopia (blue-blind)
#B44E71
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #af40ae;
/* rgb */ color: rgb(175, 64, 174);
/* oklch */ color: oklch(56.6% 0.193 328.1);
Tailwind
colors: {
  custom: {
    50: '#ca7dc6',
    500: '#af40ae',
    950: '#000000',
  },
}
SCSS
$custom: #af40ae;
$custom-light: #ca7dc6;
$custom-dark: #000000;
JSON
{
  "hex": "#af40ae",
  "rgb": {
    "r": 175,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 300.541,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.56607,
    "c": 0.19333,
    "h": 328.1
  },
  "luminance": 0.15837
}

Semantic roles & 50–950 ramp

primary
#AF40AE
secondary
#88C389
accent
#D65352
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF40AE

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

Preview Lab → · Contrast checker → · Palette generator →

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