#AF2E9A#AF2E9A

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

Color values

HEX#AF2E9A
RGBrgb(175, 46, 154)
HSLhsl(310, 58%, 43%)
HSVhsv(310, 74%, 69%)
CMYKcmyk(0%, 73.7%, 12%, 31.4%)
CIE-LABlab(43.36, 62.28, -30.43)
CIE-LCHlch(43.36, 69.32, 333.96°)
OKLaboklab(53.82% 0.1821 -0.0831)
OKLCHoklch(53.82% 0.2 335.5)
XYZxyz(24.4893, 13.4032, 31.8629)
Luminance0.1340 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2E9A #2EAF43
analogous
#832EAF #AF2E9A #AF2E5A
triadic
#AF2E9A #9AAF2E #2E9AAF
tetradic
#AF2E9A #AF832E #2EAF43 #2E5AAF
square
#AF2E9A #AF832E #2EAF43 #2E5AAF
split-complementary
#AF2E9A #5AAF2E #2EAF83
monochromatic
#4E1545 #7F216F #AF2E9A #D04BBA #DC7BCC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF2E9A#FFFFFF#000000##FFFFFF
##AF2E9A1.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)
#2E5A9D
Deuteranopia (green-blind)
#5C6D97
Tritanopia (blue-blind)
#B83861
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af2e9a;
/* rgb */ color: rgb(175, 46, 154);
/* oklch */ color: oklch(53.8% 0.200 335.5);
Tailwind
colors: {
  custom: {
    50: '#cb74b8',
    500: '#af2e9a',
    950: '#000000',
  },
}
SCSS
$custom: #af2e9a;
$custom-light: #cb74b8;
$custom-dark: #000000;
JSON
{
  "hex": "#af2e9a",
  "rgb": {
    "r": 175,
    "g": 46,
    "b": 154
  },
  "hsl": {
    "h": 309.767,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.53824,
    "c": 0.20016,
    "h": 335.5
  },
  "luminance": 0.13401
}

Semantic roles & 50–950 ramp

primary
#AF2E9A
secondary
#74C581
accent
#E26046
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF2E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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