#AF2D9A#AF2D9A

#AF2D9A is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 53.7% C 0.201 H 335.5°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#AF2D9A
RGBrgb(175, 45, 154)
HSLhsl(310, 59%, 43%)
HSVhsv(310, 74%, 69%)
CMYKcmyk(0%, 74.3%, 12%, 31.4%)
CIE-LABlab(43.25, 62.61, -30.61)
CIE-LCHlch(43.25, 69.69, 333.95°)
OKLaboklab(53.74% 0.1831 -0.0836)
OKLCHoklch(53.74% 0.201 335.5)
XYZxyz(24.4507, 13.3260, 31.8500)
Luminance0.1332 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2D9A #2DAF42
analogous
#832DAF #AF2D9A #AF2D59
triadic
#AF2D9A #9AAF2D #2D9AAF
tetradic
#AF2D9A #AF832D #2DAF42 #2D59AF
square
#AF2D9A #AF832D #2DAF42 #2D59AF
split-complementary
#AF2D9A #59AF2D #2DAF83
monochromatic
#4E1444 #7E206F #AF2D9A #D049BA #DD7ACD

Accessibility & contrast

On white

5.73
#AF2D9A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#AF2D9A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2D9A
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2D9A#FFFFFF#000000##FFFFFF
##AF2D9A1.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5A9D
Deuteranopia (green-blind)
#5C6D97
Tritanopia (blue-blind)
#B83761
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af2d9a;
/* rgb */ color: rgb(175, 45, 154);
/* oklch */ color: oklch(53.7% 0.201 335.5);
Tailwind
colors: {
  custom: {
    50: '#cb73b8',
    500: '#af2d9a',
    950: '#000000',
  },
}
SCSS
$custom: #af2d9a;
$custom-light: #cb73b8;
$custom-dark: #000000;
JSON
{
  "hex": "#af2d9a",
  "rgb": {
    "r": 175,
    "g": 45,
    "b": 154
  },
  "hsl": {
    "h": 309.692,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.53742,
    "c": 0.20124,
    "h": 335.5
  },
  "luminance": 0.13324
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF2D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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