#AF40A3#AF40A3

#AF40A3 is a mid, vivid purple. Relative luminance 0.154; OKLCH L 56.0% C 0.184 H 332.3°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#AF40A3
RGBrgb(175, 64, 163)
HSLhsl(306, 46%, 47%)
HSVhsv(306, 63%, 69%)
CMYKcmyk(0%, 63.4%, 6.9%, 31.4%)
CIE-LABlab(46.21, 56.93, -31.34)
CIE-LCHlch(46.21, 64.98, 331.16°)
OKLaboklab(56.03% 0.1632 -0.0858)
OKLCHoklch(56.03% 0.184 332.3)
XYZxyz(26.1235, 15.4271, 36.2451)
Luminance0.1542 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF40A3 #40AF4C
analogous
#8340AF #AF40A3 #AF406C
triadic
#AF40A3 #A3AF40 #40A3AF
tetradic
#AF40A3 #AF8340 #40AF4C #406CAF
square
#AF40A3 #AF8340 #40AF4C #406CAF
split-complementary
#AF40A3 #6CAF40 #40AF83
monochromatic
#551F50 #823079 #AF40A3 #C765BC #D792D0

Accessibility & contrast

On white

5.14
#AF40A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#AF40A3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF40A3
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF40A3#FFFFFF#000000##FFFFFF
##AF40A31.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B63A6
Deuteranopia (green-blind)
#6073A0
Tritanopia (blue-blind)
#B64A6C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #af40a3;
/* rgb */ color: rgb(175, 64, 163);
/* oklch */ color: oklch(56.0% 0.184 332.3);
Tailwind
colors: {
  custom: {
    50: '#ca7cbe',
    500: '#af40a3',
    950: '#000000',
  },
}
SCSS
$custom: #af40a3;
$custom-light: #ca7cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#af40a3",
  "rgb": {
    "r": 175,
    "g": 64,
    "b": 163
  },
  "hsl": {
    "h": 306.486,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.56031,
    "c": 0.18439,
    "h": 332.3
  },
  "luminance": 0.15425
}

Semantic roles & 50–950 ramp

primary
#AF40A3
secondary
#88C38F
accent
#D66052
background
#FCF7FB
surface
#F9EEF7
border
#D2C9D0
text
#140A12
muted
#827C81

Preview Lab

Preview with #AF40A3

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

Preview Lab → · Contrast checker → · Palette generator →

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