#AF2D9B#AF2D9B

#AF2D9B is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 53.8% C 0.202 H 335.1°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#AF2D9B
RGBrgb(175, 45, 155)
HSLhsl(309, 59%, 43%)
HSVhsv(309, 74%, 69%)
CMYKcmyk(0%, 74.3%, 11.4%, 31.4%)
CIE-LABlab(43.30, 62.75, -31.13)
CIE-LCHlch(43.30, 70.05, 333.61°)
OKLaboklab(53.79% 0.1832 -0.0851)
OKLCHoklch(53.79% 0.202 335.1)
XYZxyz(24.5343, 13.3595, 32.2905)
Luminance0.1336 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2D9B #2DAF41
analogous
#822DAF #AF2D9B #AF2D5A
triadic
#AF2D9B #9BAF2D #2D9BAF
tetradic
#AF2D9B #AF822D #2DAF41 #2D5AAF
square
#AF2D9B #AF822D #2DAF41 #2D5AAF
split-complementary
#AF2D9B #5AAF2D #2DAF82
monochromatic
#4E1445 #7E2070 #AF2D9B #D049BB #DD7ACD

Accessibility & contrast

On white

5.72
#AF2D9B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#AF2D9B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2D9B
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2D9B#FFFFFF#000000##FFFFFF
##AF2D9B1.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5A9E
Deuteranopia (green-blind)
#5B6D98
Tritanopia (blue-blind)
#B83861
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af2d9b;
/* rgb */ color: rgb(175, 45, 155);
/* oklch */ color: oklch(53.8% 0.202 335.1);
Tailwind
colors: {
  custom: {
    50: '#cb73b9',
    500: '#af2d9b',
    950: '#000000',
  },
}
SCSS
$custom: #af2d9b;
$custom-light: #cb73b9;
$custom-dark: #000000;
JSON
{
  "hex": "#af2d9b",
  "rgb": {
    "r": 175,
    "g": 45,
    "b": 155
  },
  "hsl": {
    "h": 309.231,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.53794,
    "c": 0.20195,
    "h": 335.1
  },
  "luminance": 0.13357
}

Semantic roles & 50–950 ramp

primary
#AF2D9B
secondary
#73C580
accent
#E25E46
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF2D9B

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

Preview Lab → · Contrast checker → · Palette generator →

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