#AF2C9A#AF2C9A

#AF2C9A is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 53.7% C 0.202 H 335.4°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#AF2C9A
RGBrgb(175, 44, 154)
HSLhsl(310, 60%, 43%)
HSVhsv(310, 75%, 69%)
CMYKcmyk(0%, 74.9%, 12%, 31.4%)
CIE-LABlab(43.14, 62.92, -30.78)
CIE-LCHlch(43.14, 70.05, 333.93°)
OKLaboklab(53.66% 0.184 -0.0841)
OKLCHoklch(53.66% 0.202 335.4)
XYZxyz(24.4130, 13.2506, 31.8375)
Luminance0.1325 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2C9A #2CAF41
analogous
#822CAF #AF2C9A #AF2C59
triadic
#AF2C9A #9AAF2C #2C9AAF
tetradic
#AF2C9A #AF822C #2CAF41 #2C59AF
square
#AF2C9A #AF822C #2CAF41 #2C59AF
split-complementary
#AF2C9A #59AF2C #2CAF82
monochromatic
#4D1344 #7E206F #AF2C9A #D147BB #DD78CD

Accessibility & contrast

On white

5.75
#AF2C9A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#AF2C9A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2C9A
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2C9A#FFFFFF#000000##FFFFFF
##AF2C9A1.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C599D
Deuteranopia (green-blind)
#5B6D97
Tritanopia (blue-blind)
#B83660
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af2c9a;
/* rgb */ color: rgb(175, 44, 154);
/* oklch */ color: oklch(53.7% 0.202 335.4);
Tailwind
colors: {
  custom: {
    50: '#cb73b8',
    500: '#af2c9a',
    950: '#000000',
  },
}
SCSS
$custom: #af2c9a;
$custom-light: #cb73b8;
$custom-dark: #000000;
JSON
{
  "hex": "#af2c9a",
  "rgb": {
    "r": 175,
    "g": 44,
    "b": 154
  },
  "hsl": {
    "h": 309.618,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.53661,
    "c": 0.20231,
    "h": 335.4
  },
  "luminance": 0.13248
}

Semantic roles & 50–950 ramp

primary
#AF2C9A
secondary
#72C57F
accent
#E35E45
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF2C9A

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

Preview Lab → · Contrast checker → · Palette generator →

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