#AF2EA5#AF2EA5

#AF2EA5 is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.4% C 0.208 H 331.4°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#AF2EA5
RGBrgb(175, 46, 165)
HSLhsl(305, 58%, 43%)
HSVhsv(305, 74%, 69%)
CMYKcmyk(0%, 73.7%, 5.7%, 31.4%)
CIE-LABlab(43.93, 63.96, -36.13)
CIE-LCHlch(43.93, 73.46, 330.54°)
OKLaboklab(54.41% 0.1828 -0.0995)
OKLCHoklch(54.41% 0.208 331.4)
XYZxyz(25.4477, 13.7866, 36.9108)
Luminance0.1379 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2EA5 #2EAF38
analogous
#782EAF #AF2EA5 #AF2E64
triadic
#AF2EA5 #A5AF2E #2EA5AF
tetradic
#AF2EA5 #AF782E #2EAF38 #2E64AF
square
#AF2EA5 #AF782E #2EAF38 #2E64AF
split-complementary
#AF2EA5 #64AF2E #2EAF78
monochromatic
#4E154A #7F2177 #AF2EA5 #D04BC5 #DC7BD5

Accessibility & contrast

On white

5.59
#AF2EA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#AF2EA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2EA5
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2EA5#FFFFFF#000000##FFFFFF
##AF2EA51.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235CA8
Deuteranopia (green-blind)
#576EA2
Tritanopia (blue-blind)
#B63D67
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af2ea5;
/* rgb */ color: rgb(175, 46, 165);
/* oklch */ color: oklch(54.4% 0.208 331.4);
Tailwind
colors: {
  custom: {
    50: '#cb74c0',
    500: '#af2ea5',
    950: '#000000',
  },
}
SCSS
$custom: #af2ea5;
$custom-light: #cb74c0;
$custom-dark: #000000;
JSON
{
  "hex": "#af2ea5",
  "rgb": {
    "r": 175,
    "g": 46,
    "b": 165
  },
  "hsl": {
    "h": 304.651,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.54409,
    "c": 0.20812,
    "h": 331.4
  },
  "luminance": 0.13785
}

Semantic roles & 50–950 ramp

primary
#AF2EA5
secondary
#74C57A
accent
#E25246
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF2EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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