#AF2EB5#AF2EB5

#AF2EB5 is a mid, highly saturated purple. Relative luminance 0.144; OKLCH L 55.3% C 0.220 H 326.1°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#AF2EB5
RGBrgb(175, 46, 181)
HSLhsl(297, 59%, 45%)
HSVhsv(297, 75%, 71%)
CMYKcmyk(3.3%, 74.6%, 0%, 29%)
CIE-LABlab(44.81, 66.56, -44.20)
CIE-LCHlch(44.81, 79.90, 326.41°)
OKLaboklab(55.33% 0.1828 -0.1229)
OKLCHoklch(55.33% 0.22 326.1)
XYZxyz(26.9961, 14.4060, 45.0658)
Luminance0.1440 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2EB5 #34B52E
analogous
#6B2EB5 #AF2EB5 #B52E78
triadic
#AF2EB5 #B5AF2E #2EB5AF
tetradic
#AF2EB5 #B56B2E #34B52E #2E78B5
square
#AF2EB5 #B56B2E #34B52E #2E78B5
split-complementary
#AF2EB5 #78B52E #2EB56B
monochromatic
#511553 #802284 #AF2EB5 #CC4ED2 #DA7FDE

Accessibility & contrast

On white

5.41
#AF2EB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#AF2EB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2EB5
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2EB5#FFFFFF#000000##FFFFFF
##AF2EB51.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060B9
Deuteranopia (green-blind)
#4E6FB2
Tritanopia (blue-blind)
#B34570
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af2eb5;
/* rgb */ color: rgb(175, 46, 181);
/* oklch */ color: oklch(55.3% 0.220 326.1);
Tailwind
colors: {
  custom: {
    50: '#cb75cc',
    500: '#af2eb5',
    950: '#000000',
  },
}
SCSS
$custom: #af2eb5;
$custom-light: #cb75cc;
$custom-dark: #000000;
JSON
{
  "hex": "#af2eb5",
  "rgb": {
    "r": 175,
    "g": 46,
    "b": 181
  },
  "hsl": {
    "h": 297.333,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.55327,
    "c": 0.22029,
    "h": 326.1
  },
  "luminance": 0.14404
}

Semantic roles & 50–950 ramp

primary
#AF2EB5
secondary
#7BC778
accent
#E3454C
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140913
muted
#827B82

Preview Lab

Preview with #AF2EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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