#AF41A2#AF41A2

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

Color values

HEX#AF41A2
RGBrgb(175, 65, 162)
HSLhsl(307, 46%, 47%)
HSVhsv(307, 63%, 69%)
CMYKcmyk(0%, 62.9%, 7.4%, 31.4%)
CIE-LABlab(46.32, 56.34, -30.59)
CIE-LCHlch(46.32, 64.11, 331.50°)
OKLaboklab(56.09% 0.1619 -0.0837)
OKLCHoklch(56.09% 0.182 332.7)
XYZxyz(26.0911, 15.5052, 35.7940)
Luminance0.1550 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF41A2 #41AF4E
analogous
#8541AF #AF41A2 #AF416B
triadic
#AF41A2 #A2AF41 #41A2AF
tetradic
#AF41A2 #AF8541 #41AF4E #416BAF
square
#AF41A2 #AF8541 #41AF4E #416BAF
split-complementary
#AF41A2 #6BAF41 #41AF85
monochromatic
#56204F #823079 #AF41A2 #C667BB #D793CF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF41A2#FFFFFF#000000##FFFFFF
##AF41A21.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)
#3D64A5
Deuteranopia (green-blind)
#61739F
Tritanopia (blue-blind)
#B64A6B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #af41a2;
/* rgb */ color: rgb(175, 65, 162);
/* oklch */ color: oklch(56.1% 0.182 332.7);
Tailwind
colors: {
  custom: {
    50: '#ca7dbe',
    500: '#af41a2',
    950: '#000000',
  },
}
SCSS
$custom: #af41a2;
$custom-light: #ca7dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#af41a2",
  "rgb": {
    "r": 175,
    "g": 65,
    "b": 162
  },
  "hsl": {
    "h": 307.091,
    "s": 45.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.56092,
    "c": 0.1822,
    "h": 332.7
  },
  "luminance": 0.15503
}

Semantic roles & 50–950 ramp

primary
#AF41A2
secondary
#89C290
accent
#D56252
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140A12
muted
#827C81

Preview Lab

Preview with #AF41A2

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

Preview Lab → · Contrast checker → · Palette generator →

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