#AF2C9B#AF2C9B

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

Color values

HEX#AF2C9B
RGBrgb(175, 44, 155)
HSLhsl(309, 60%, 43%)
HSVhsv(309, 75%, 69%)
CMYKcmyk(0%, 74.9%, 11.4%, 31.4%)
CIE-LABlab(43.19, 63.07, -31.31)
CIE-LCHlch(43.19, 70.42, 333.60°)
OKLaboklab(53.71% 0.1841 -0.0856)
OKLCHoklch(53.71% 0.203 335.1)
XYZxyz(24.4966, 13.2841, 32.2779)
Luminance0.1328 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2C9B #2CAF40
analogous
#812CAF #AF2C9B #AF2C5A
triadic
#AF2C9B #9BAF2C #2C9BAF
tetradic
#AF2C9B #AF812C #2CAF40 #2C5AAF
square
#AF2C9B #AF812C #2CAF40 #2C5AAF
split-complementary
#AF2C9B #5AAF2C #2CAF81
monochromatic
#4D1344 #7E2070 #AF2C9B #D147BC #DD78CE

Accessibility & contrast

On white

5.74
#AF2C9B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF2C9B
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2C9B#FFFFFF#000000##FFFFFF
##AF2C9B1.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af2c9b;
/* rgb */ color: rgb(175, 44, 155);
/* oklch */ color: oklch(53.7% 0.203 335.1);
Tailwind
colors: {
  custom: {
    50: '#cb73b9',
    500: '#af2c9b',
    950: '#000000',
  },
}
SCSS
$custom: #af2c9b;
$custom-light: #cb73b9;
$custom-dark: #000000;
JSON
{
  "hex": "#af2c9b",
  "rgb": {
    "r": 175,
    "g": 44,
    "b": 155
  },
  "hsl": {
    "h": 309.16,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.53713,
    "c": 0.20301,
    "h": 335.1
  },
  "luminance": 0.13282
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF2C9B

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

Preview Lab → · Contrast checker → · Palette generator →

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