#AF2DA4#AF2DA4

#AF2DA4 is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.3% C 0.208 H 331.8°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#AF2DA4
RGBrgb(175, 45, 164)
HSLhsl(305, 59%, 43%)
HSVhsv(305, 74%, 69%)
CMYKcmyk(0%, 74.3%, 6.3%, 31.4%)
CIE-LABlab(43.76, 64.13, -35.80)
CIE-LCHlch(43.76, 73.44, 330.83°)
OKLaboklab(54.27% 0.1837 -0.0985)
OKLCHoklch(54.27% 0.208 331.8)
XYZxyz(25.3185, 13.6731, 36.4205)
Luminance0.1367 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2DA4 #2DAF38
analogous
#792DAF #AF2DA4 #AF2D63
triadic
#AF2DA4 #A4AF2D #2DA4AF
tetradic
#AF2DA4 #AF792D #2DAF38 #2D63AF
square
#AF2DA4 #AF792D #2DAF38 #2D63AF
split-complementary
#AF2DA4 #63AF2D #2DAF79
monochromatic
#4E1449 #7E2076 #AF2DA4 #D049C5 #DD7AD4

Accessibility & contrast

On white

5.62
#AF2DA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#AF2DA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2DA4
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2DA4#FFFFFF#000000##FFFFFF
##AF2DA41.005.623.735.62
#FFFFFF5.621.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235CA7
Deuteranopia (green-blind)
#576EA1
Tritanopia (blue-blind)
#B63C66
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af2da4;
/* rgb */ color: rgb(175, 45, 164);
/* oklch */ color: oklch(54.3% 0.208 331.8);
Tailwind
colors: {
  custom: {
    50: '#cb74bf',
    500: '#af2da4',
    950: '#000000',
  },
}
SCSS
$custom: #af2da4;
$custom-light: #cb74bf;
$custom-dark: #000000;
JSON
{
  "hex": "#af2da4",
  "rgb": {
    "r": 175,
    "g": 45,
    "b": 164
  },
  "hsl": {
    "h": 305.077,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.54274,
    "c": 0.20845,
    "h": 331.8
  },
  "luminance": 0.13671
}

Semantic roles & 50–950 ramp

primary
#AF2DA4
secondary
#73C57A
accent
#E25346
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF2DA4

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

Preview Lab → · Contrast checker → · Palette generator →

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