#AF2C9C#AF2C9C

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

Color values

HEX#AF2C9C
RGBrgb(175, 44, 156)
HSLhsl(309, 60%, 43%)
HSVhsv(309, 75%, 69%)
CMYKcmyk(0%, 74.9%, 10.9%, 31.4%)
CIE-LABlab(43.24, 63.22, -31.83)
CIE-LCHlch(43.24, 70.78, 333.28°)
OKLaboklab(53.76% 0.1842 -0.0871)
OKLCHoklch(53.76% 0.204 334.7)
XYZxyz(24.5809, 13.3178, 32.7220)
Luminance0.1332 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2C9C #2CAF3F
analogous
#802CAF #AF2C9C #AF2C5B
triadic
#AF2C9C #9CAF2C #2C9CAF
tetradic
#AF2C9C #AF802C #2CAF3F #2C5BAF
square
#AF2C9C #AF802C #2CAF3F #2C5BAF
split-complementary
#AF2C9C #5BAF2C #2CAF80
monochromatic
#4D1345 #7E2070 #AF2C9C #D147BD #DD78CE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF2C9C#FFFFFF#000000##FFFFFF
##AF2C9C1.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)
#2B5A9F
Deuteranopia (green-blind)
#5A6D99
Tritanopia (blue-blind)
#B83861
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af2c9c;
/* rgb */ color: rgb(175, 44, 156);
/* oklch */ color: oklch(53.8% 0.204 334.7);
Tailwind
colors: {
  custom: {
    50: '#cb73b9',
    500: '#af2c9c',
    950: '#000000',
  },
}
SCSS
$custom: #af2c9c;
$custom-light: #cb73b9;
$custom-dark: #000000;
JSON
{
  "hex": "#af2c9c",
  "rgb": {
    "r": 175,
    "g": 44,
    "b": 156
  },
  "hsl": {
    "h": 308.702,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.53765,
    "c": 0.20372,
    "h": 334.7
  },
  "luminance": 0.13316
}

Semantic roles & 50–950 ramp

primary
#AF2C9C
secondary
#72C57E
accent
#E35C45
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF2C9C

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

Preview Lab → · Contrast checker → · Palette generator →

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