#AF409E#AF409E

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

Color values

HEX#AF409E
RGBrgb(175, 64, 158)
HSLhsl(309, 46%, 47%)
HSVhsv(309, 63%, 69%)
CMYKcmyk(0%, 63.4%, 9.7%, 31.4%)
CIE-LABlab(45.98, 56.12, -28.74)
CIE-LCHlch(45.98, 63.05, 332.88°)
OKLaboklab(55.78% 0.1626 -0.0784)
OKLCHoklch(55.78% 0.18 334.3)
XYZxyz(25.6843, 15.2514, 33.9322)
Luminance0.1525 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF409E #40AF51
analogous
#8940AF #AF409E #AF4067
triadic
#AF409E #9EAF40 #409EAF
tetradic
#AF409E #AF8940 #40AF51 #4067AF
square
#AF409E #AF8940 #40AF51 #4067AF
split-complementary
#AF409E #67AF40 #40AF89
monochromatic
#551F4D #823076 #AF409E #C765B8 #D792CD

Accessibility & contrast

On white

5.19
#AF409E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#AF409E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF409E
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF409E#FFFFFF#000000##FFFFFF
##AF409E1.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F62A1
Deuteranopia (green-blind)
#63739B
Tritanopia (blue-blind)
#B74869
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #af409e;
/* rgb */ color: rgb(175, 64, 158);
/* oklch */ color: oklch(55.8% 0.180 334.3);
Tailwind
colors: {
  custom: {
    50: '#ca7cbb',
    500: '#af409e',
    950: '#000000',
  },
}
SCSS
$custom: #af409e;
$custom-light: #ca7cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#af409e",
  "rgb": {
    "r": 175,
    "g": 64,
    "b": 158
  },
  "hsl": {
    "h": 309.189,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.55781,
    "c": 0.18048,
    "h": 334.3
  },
  "luminance": 0.15249
}

Semantic roles & 50–950 ramp

primary
#AF409E
secondary
#88C391
accent
#D66652
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140A12
muted
#827C81

Preview Lab

Preview with #AF409E

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

Preview Lab → · Contrast checker → · Palette generator →

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