#AF2C9D#AF2C9D

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

Color values

HEX#AF2C9D
RGBrgb(175, 44, 157)
HSLhsl(308, 60%, 43%)
HSVhsv(308, 75%, 69%)
CMYKcmyk(0%, 74.9%, 10.3%, 31.4%)
CIE-LABlab(43.29, 63.37, -32.35)
CIE-LCHlch(43.29, 71.15, 332.96°)
OKLaboklab(53.82% 0.1843 -0.0886)
OKLCHoklch(53.82% 0.204 334.3)
XYZxyz(24.6659, 13.3518, 33.1698)
Luminance0.1335 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2C9D #2CAF3E
analogous
#7F2CAF #AF2C9D #AF2C5C
triadic
#AF2C9D #9DAF2C #2C9DAF
tetradic
#AF2C9D #AF7F2C #2CAF3E #2C5CAF
square
#AF2C9D #AF7F2C #2CAF3E #2C5CAF
split-complementary
#AF2C9D #5CAF2C #2CAF7F
monochromatic
#4D1345 #7E2071 #AF2C9D #D147BE #DD78CF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF2C9D#FFFFFF#000000##FFFFFF
##AF2C9D1.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)
#2A5AA0
Deuteranopia (green-blind)
#5A6D9A
Tritanopia (blue-blind)
#B73862
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af2c9d;
/* rgb */ color: rgb(175, 44, 157);
/* oklch */ color: oklch(53.8% 0.204 334.3);
Tailwind
colors: {
  custom: {
    50: '#cb73ba',
    500: '#af2c9d',
    950: '#000000',
  },
}
SCSS
$custom: #af2c9d;
$custom-light: #cb73ba;
$custom-dark: #000000;
JSON
{
  "hex": "#af2c9d",
  "rgb": {
    "r": 175,
    "g": 44,
    "b": 157
  },
  "hsl": {
    "h": 308.244,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.53818,
    "c": 0.20443,
    "h": 334.3
  },
  "luminance": 0.1335
}

Semantic roles & 50–950 ramp

primary
#AF2C9D
secondary
#72C57D
accent
#E35B45
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF2C9D

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

Preview Lab → · Contrast checker → · Palette generator →

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