#AF2D9E#AF2D9E

#AF2D9E is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 54.0% C 0.204 H 334.0°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#AF2D9E
RGBrgb(175, 45, 158)
HSLhsl(308, 59%, 43%)
HSVhsv(308, 74%, 69%)
CMYKcmyk(0%, 74.3%, 9.7%, 31.4%)
CIE-LABlab(43.45, 63.20, -32.70)
CIE-LCHlch(43.45, 71.16, 332.65°)
OKLaboklab(53.95% 0.1834 -0.0896)
OKLCHoklch(53.95% 0.204 334)
XYZxyz(24.7894, 13.4615, 33.6339)
Luminance0.1346 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2D9E #2DAF3E
analogous
#7F2DAF #AF2D9E #AF2D5D
triadic
#AF2D9E #9EAF2D #2D9EAF
tetradic
#AF2D9E #AF7F2D #2DAF3E #2D5DAF
square
#AF2D9E #AF7F2D #2DAF3E #2D5DAF
split-complementary
#AF2D9E #5DAF2D #2DAF7F
monochromatic
#4E1446 #7E2072 #AF2D9E #D049BF #DD7AD0

Accessibility & contrast

On white

5.69
#AF2D9E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#AF2D9E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2D9E
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2D9E#FFFFFF#000000##FFFFFF
##AF2D9E1.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5BA1
Deuteranopia (green-blind)
#5A6D9B
Tritanopia (blue-blind)
#B73963
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af2d9e;
/* rgb */ color: rgb(175, 45, 158);
/* oklch */ color: oklch(54.0% 0.204 334.0);
Tailwind
colors: {
  custom: {
    50: '#cb73bb',
    500: '#af2d9e',
    950: '#000000',
  },
}
SCSS
$custom: #af2d9e;
$custom-light: #cb73bb;
$custom-dark: #000000;
JSON
{
  "hex": "#af2d9e",
  "rgb": {
    "r": 175,
    "g": 45,
    "b": 158
  },
  "hsl": {
    "h": 307.846,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.53951,
    "c": 0.20409,
    "h": 334
  },
  "luminance": 0.13459
}

Semantic roles & 50–950 ramp

primary
#AF2D9E
secondary
#73C57E
accent
#E25A46
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF2D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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