#AF2D9D#AF2D9D

#AF2D9D is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 53.9% C 0.203 H 334.3°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#AF2D9D
RGBrgb(175, 45, 157)
HSLhsl(308, 59%, 43%)
HSVhsv(308, 74%, 69%)
CMYKcmyk(0%, 74.3%, 10.3%, 31.4%)
CIE-LABlab(43.40, 63.05, -32.18)
CIE-LCHlch(43.40, 70.79, 332.96°)
OKLaboklab(53.9% 0.1833 -0.0881)
OKLCHoklch(53.9% 0.203 334.3)
XYZxyz(24.7036, 13.4272, 33.1824)
Luminance0.1343 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2D9D #2DAF3F
analogous
#802DAF #AF2D9D #AF2D5C
triadic
#AF2D9D #9DAF2D #2D9DAF
tetradic
#AF2D9D #AF802D #2DAF3F #2D5CAF
square
#AF2D9D #AF802D #2DAF3F #2D5CAF
split-complementary
#AF2D9D #5CAF2D #2DAF80
monochromatic
#4E1446 #7E2071 #AF2D9D #D049BD #DD7ACF

Accessibility & contrast

On white

5.70
#AF2D9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#AF2D9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2D9D
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2D9D#FFFFFF#000000##FFFFFF
##AF2D9D1.005.703.695.70
#FFFFFF5.701.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5AA0
Deuteranopia (green-blind)
#5A6D9A
Tritanopia (blue-blind)
#B73962
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af2d9d;
/* rgb */ color: rgb(175, 45, 157);
/* oklch */ color: oklch(53.9% 0.203 334.3);
Tailwind
colors: {
  custom: {
    50: '#cb73ba',
    500: '#af2d9d',
    950: '#000000',
  },
}
SCSS
$custom: #af2d9d;
$custom-light: #cb73ba;
$custom-dark: #000000;
JSON
{
  "hex": "#af2d9d",
  "rgb": {
    "r": 175,
    "g": 45,
    "b": 157
  },
  "hsl": {
    "h": 308.308,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.53898,
    "c": 0.20337,
    "h": 334.3
  },
  "luminance": 0.13425
}

Semantic roles & 50–950 ramp

primary
#AF2D9D
secondary
#73C57E
accent
#E25B46
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF2D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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