#AF2EB8#AF2EB8

#AF2EB8 is a mid, highly saturated purple. Relative luminance 0.145; OKLCH L 55.5% C 0.223 H 325.1°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#AF2EB8
RGBrgb(175, 46, 184)
HSLhsl(296, 60%, 45%)
HSVhsv(296, 75%, 72%)
CMYKcmyk(4.9%, 75%, 0%, 27.8%)
CIE-LABlab(44.98, 67.06, -45.69)
CIE-LCHlch(44.98, 81.15, 325.73°)
OKLaboklab(55.51% 0.1827 -0.1272)
OKLCHoklch(55.51% 0.223 325.1)
XYZxyz(27.3073, 14.5304, 46.7045)
Luminance0.1453 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2EB8 #37B82E
analogous
#6A2EB8 #AF2EB8 #B82E7C
triadic
#AF2EB8 #B8AF2E #2EB8AF
tetradic
#AF2EB8 #B86A2E #37B82E #2E7CB8
square
#AF2EB8 #B86A2E #37B82E #2E7CB8
split-complementary
#AF2EB8 #7CB82E #2EB86A
monochromatic
#521656 #802287 #AF2EB8 #CB50D3 #D981DF

Accessibility & contrast

On white

5.38
#AF2EB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#AF2EB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2EB8
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2EB8#FFFFFF#000000##FFFFFF
##AF2EB81.005.383.915.38
#FFFFFF5.381.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BC
Deuteranopia (green-blind)
#4C70B5
Tritanopia (blue-blind)
#B34771
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af2eb8;
/* rgb */ color: rgb(175, 46, 184);
/* oklch */ color: oklch(55.5% 0.223 325.1);
Tailwind
colors: {
  custom: {
    50: '#cb75ce',
    500: '#af2eb8',
    950: '#000000',
  },
}
SCSS
$custom: #af2eb8;
$custom-light: #cb75ce;
$custom-dark: #000000;
JSON
{
  "hex": "#af2eb8",
  "rgb": {
    "r": 175,
    "g": 46,
    "b": 184
  },
  "hsl": {
    "h": 296.087,
    "s": 60,
    "l": 45.098
  },
  "oklch": {
    "l": 0.55508,
    "c": 0.22263,
    "h": 325.1
  },
  "luminance": 0.14529
}

Semantic roles & 50–950 ramp

primary
#AF2EB8
secondary
#7FC879
accent
#E3454F
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140914
muted
#827B82

Preview Lab

Preview with #AF2EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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