#AF2DA7#AF2DA7

#AF2DA7 is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.4% C 0.211 H 330.7°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#AF2DA7
RGBrgb(175, 45, 167)
HSLhsl(304, 59%, 43%)
HSVhsv(304, 74%, 69%)
CMYKcmyk(0%, 74.3%, 4.6%, 31.4%)
CIE-LABlab(43.92, 64.60, -37.33)
CIE-LCHlch(43.92, 74.61, 329.97°)
OKLaboklab(54.44% 0.1838 -0.1029)
OKLCHoklch(54.44% 0.211 330.7)
XYZxyz(25.5926, 13.7828, 37.8641)
Luminance0.1378 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2DA7 #2DAF35
analogous
#762DAF #AF2DA7 #AF2D66
triadic
#AF2DA7 #A7AF2D #2DA7AF
tetradic
#AF2DA7 #AF762D #2DAF35 #2D66AF
square
#AF2DA7 #AF762D #2DAF35 #2D66AF
split-complementary
#AF2DA7 #66AF2D #2DAF76
monochromatic
#4E144A #7E2079 #AF2DA7 #D049C8 #DD7AD7

Accessibility & contrast

On white

5.59
#AF2DA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#AF2DA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2DA7
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2DA7#FFFFFF#000000##FFFFFF
##AF2DA71.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F5CAA
Deuteranopia (green-blind)
#566EA4
Tritanopia (blue-blind)
#B63E68
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af2da7;
/* rgb */ color: rgb(175, 45, 167);
/* oklch */ color: oklch(54.4% 0.211 330.7);
Tailwind
colors: {
  custom: {
    50: '#cb74c1',
    500: '#af2da7',
    950: '#000000',
  },
}
SCSS
$custom: #af2da7;
$custom-light: #cb74c1;
$custom-dark: #000000;
JSON
{
  "hex": "#af2da7",
  "rgb": {
    "r": 175,
    "g": 45,
    "b": 167
  },
  "hsl": {
    "h": 303.692,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.5444,
    "c": 0.21066,
    "h": 330.7
  },
  "luminance": 0.13781
}

Semantic roles & 50–950 ramp

primary
#AF2DA7
secondary
#73C578
accent
#E24F46
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF2DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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