#AF40AA#AF40AA

#AF40AA is a mid, vivid purple. Relative luminance 0.157; OKLCH L 56.4% C 0.190 H 329.6°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#AF40AA
RGBrgb(175, 64, 170)
HSLhsl(303, 46%, 47%)
HSVhsv(303, 63%, 69%)
CMYKcmyk(0%, 63.4%, 2.9%, 31.4%)
CIE-LABlab(46.56, 58.09, -34.95)
CIE-LCHlch(46.56, 67.80, 328.97°)
OKLaboklab(56.39% 0.1639 -0.0962)
OKLCHoklch(56.39% 0.19 329.6)
XYZxyz(26.7681, 15.6849, 39.6400)
Luminance0.1568 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF40AA #40AF45
analogous
#7D40AF #AF40AA #AF4073
triadic
#AF40AA #AAAF40 #40AAAF
tetradic
#AF40AA #AF7D40 #40AF45 #4073AF
square
#AF40AA #AF7D40 #40AF45 #4073AF
split-complementary
#AF40AA #73AF40 #40AF7D
monochromatic
#551F53 #82307E #AF40AA #C765C2 #D792D4

Accessibility & contrast

On white

5.08
#AF40AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#AF40AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF40AA
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF40AA#FFFFFF#000000##FFFFFF
##AF40AA1.005.084.145.08
#FFFFFF5.081.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3665AD
Deuteranopia (green-blind)
#5D74A7
Tritanopia (blue-blind)
#B54D6F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #af40aa;
/* rgb */ color: rgb(175, 64, 170);
/* oklch */ color: oklch(56.4% 0.190 329.6);
Tailwind
colors: {
  custom: {
    50: '#ca7dc3',
    500: '#af40aa',
    950: '#000000',
  },
}
SCSS
$custom: #af40aa;
$custom-light: #ca7dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#af40aa",
  "rgb": {
    "r": 175,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 302.703,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.56394,
    "c": 0.19003,
    "h": 329.6
  },
  "luminance": 0.15683
}

Semantic roles & 50–950 ramp

primary
#AF40AA
secondary
#88C38B
accent
#D65852
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A12
muted
#827C81

Preview Lab

Preview with #AF40AA

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

Preview Lab → · Contrast checker → · Palette generator →

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