#AF2C9E#AF2C9E

#AF2C9E is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 53.9% C 0.205 H 334.0°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#AF2C9E
RGBrgb(175, 44, 158)
HSLhsl(308, 60%, 43%)
HSVhsv(308, 75%, 69%)
CMYKcmyk(0%, 74.9%, 9.7%, 31.4%)
CIE-LABlab(43.34, 63.52, -32.87)
CIE-LCHlch(43.34, 71.52, 332.64°)
OKLaboklab(53.87% 0.1843 -0.0901)
OKLCHoklch(53.87% 0.205 334)
XYZxyz(24.7517, 13.3861, 33.6213)
Luminance0.1338 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2C9E #2CAF3D
analogous
#7E2CAF #AF2C9E #AF2C5D
triadic
#AF2C9E #9EAF2C #2C9EAF
tetradic
#AF2C9E #AF7E2C #2CAF3D #2C5DAF
square
#AF2C9E #AF7E2C #2CAF3D #2C5DAF
split-complementary
#AF2C9E #5DAF2C #2CAF7E
monochromatic
#4D1346 #7E2072 #AF2C9E #D147BF #DD78D0

Accessibility & contrast

On white

5.71
#AF2C9E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#AF2C9E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2C9E
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2C9E#FFFFFF#000000##FFFFFF
##AF2C9E1.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295AA1
Deuteranopia (green-blind)
#5A6D9B
Tritanopia (blue-blind)
#B73962
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af2c9e;
/* rgb */ color: rgb(175, 44, 158);
/* oklch */ color: oklch(53.9% 0.205 334.0);
Tailwind
colors: {
  custom: {
    50: '#cb73bb',
    500: '#af2c9e',
    950: '#000000',
  },
}
SCSS
$custom: #af2c9e;
$custom-light: #cb73bb;
$custom-dark: #000000;
JSON
{
  "hex": "#af2c9e",
  "rgb": {
    "r": 175,
    "g": 44,
    "b": 158
  },
  "hsl": {
    "h": 307.786,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.53871,
    "c": 0.20514,
    "h": 334
  },
  "luminance": 0.13384
}

Semantic roles & 50–950 ramp

primary
#AF2C9E
secondary
#72C57D
accent
#E35945
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF2C9E

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

Preview Lab → · Contrast checker → · Palette generator →

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