#AF2EB6#AF2EB6

#AF2EB6 is a mid, highly saturated purple. Relative luminance 0.144; OKLCH L 55.4% C 0.221 H 325.8°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#AF2EB6
RGBrgb(175, 46, 182)
HSLhsl(297, 60%, 45%)
HSVhsv(297, 75%, 71%)
CMYKcmyk(3.8%, 74.7%, 0%, 28.6%)
CIE-LABlab(44.87, 66.73, -44.70)
CIE-LCHlch(44.87, 80.31, 326.18°)
OKLaboklab(55.39% 0.1828 -0.1244)
OKLCHoklch(55.39% 0.221 325.8)
XYZxyz(27.0991, 14.4472, 45.6082)
Luminance0.1444 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2EB6 #35B62E
analogous
#6B2EB6 #AF2EB6 #B62E79
triadic
#AF2EB6 #B6AF2E #2EB6AF
tetradic
#AF2EB6 #B66B2E #35B62E #2E79B6
square
#AF2EB6 #B66B2E #35B62E #2E79B6
split-complementary
#AF2EB6 #79B62E #2EB66B
monochromatic
#511554 #802285 #AF2EB6 #CC4FD2 #DA80DF

Accessibility & contrast

On white

5.40
#AF2EB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#AF2EB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2EB6
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2EB6#FFFFFF#000000##FFFFFF
##AF2EB61.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BA
Deuteranopia (green-blind)
#4D70B3
Tritanopia (blue-blind)
#B34670
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af2eb6;
/* rgb */ color: rgb(175, 46, 182);
/* oklch */ color: oklch(55.4% 0.221 325.8);
Tailwind
colors: {
  custom: {
    50: '#cb75cc',
    500: '#af2eb6',
    950: '#000000',
  },
}
SCSS
$custom: #af2eb6;
$custom-light: #cb75cc;
$custom-dark: #000000;
JSON
{
  "hex": "#af2eb6",
  "rgb": {
    "r": 175,
    "g": 46,
    "b": 182
  },
  "hsl": {
    "h": 296.912,
    "s": 59.649,
    "l": 44.706
  },
  "oklch": {
    "l": 0.55387,
    "c": 0.22107,
    "h": 325.8
  },
  "luminance": 0.14445
}

Semantic roles & 50–950 ramp

primary
#AF2EB6
secondary
#7CC878
accent
#E3454D
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140913
muted
#827B82

Preview Lab

Preview with #AF2EB6

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

Preview Lab → · Contrast checker → · Palette generator →

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