#AF2E9F#AF2E9F

#AF2E9F is a mid, highly saturated purple. Relative luminance 0.136; OKLCH L 54.1% C 0.204 H 333.6°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#AF2E9F
RGBrgb(175, 46, 159)
HSLhsl(307, 58%, 43%)
HSVhsv(307, 74%, 69%)
CMYKcmyk(0%, 73.7%, 9.1%, 31.4%)
CIE-LABlab(43.61, 63.03, -33.04)
CIE-LCHlch(43.61, 71.17, 332.34°)
OKLaboklab(54.09% 0.1825 -0.0906)
OKLCHoklch(54.09% 0.204 333.6)
XYZxyz(24.9144, 13.5733, 34.1019)
Luminance0.1357 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2E9F #2EAF3E
analogous
#7E2EAF #AF2E9F #AF2E5E
triadic
#AF2E9F #9FAF2E #2E9FAF
tetradic
#AF2E9F #AF7E2E #2EAF3E #2E5EAF
square
#AF2E9F #AF7E2E #2EAF3E #2E5EAF
split-complementary
#AF2E9F #5EAF2E #2EAF7E
monochromatic
#4E1547 #7F2173 #AF2E9F #D04BBF #DC7BD0

Accessibility & contrast

On white

5.65
#AF2E9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#AF2E9F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2E9F
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2E9F#FFFFFF#000000##FFFFFF
##AF2E9F1.005.653.715.65
#FFFFFF5.651.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5BA2
Deuteranopia (green-blind)
#5A6E9C
Tritanopia (blue-blind)
#B73A64
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af2e9f;
/* rgb */ color: rgb(175, 46, 159);
/* oklch */ color: oklch(54.1% 0.204 333.6);
Tailwind
colors: {
  custom: {
    50: '#cb74bc',
    500: '#af2e9f',
    950: '#000000',
  },
}
SCSS
$custom: #af2e9f;
$custom-light: #cb74bc;
$custom-dark: #000000;
JSON
{
  "hex": "#af2e9f",
  "rgb": {
    "r": 175,
    "g": 46,
    "b": 159
  },
  "hsl": {
    "h": 307.442,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.54085,
    "c": 0.20373,
    "h": 333.6
  },
  "luminance": 0.13571
}

Semantic roles & 50–950 ramp

primary
#AF2E9F
secondary
#74C57E
accent
#E25946
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF2E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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