#AF2FB5#AF2FB5

#AF2FB5 is a mid, highly saturated purple. Relative luminance 0.145; OKLCH L 55.4% C 0.219 H 326.1°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#AF2FB5
RGBrgb(175, 47, 181)
HSLhsl(297, 59%, 45%)
HSVhsv(297, 74%, 71%)
CMYKcmyk(3.3%, 74%, 0%, 29%)
CIE-LABlab(44.92, 66.24, -44.03)
CIE-LCHlch(44.92, 79.54, 326.39°)
OKLaboklab(55.41% 0.1819 -0.1224)
OKLCHoklch(55.41% 0.219 326.1)
XYZxyz(27.0357, 14.4850, 45.0790)
Luminance0.1448 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2FB5 #35B52F
analogous
#6C2FB5 #AF2FB5 #B52F78
triadic
#AF2FB5 #B5AF2F #2FB5AF
tetradic
#AF2FB5 #B56C2F #35B52F #2F78B5
square
#AF2FB5 #B56C2F #35B52F #2F78B5
split-complementary
#AF2FB5 #78B52F #2FB56C
monochromatic
#511654 #802284 #AF2FB5 #CC50D1 #DA80DE

Accessibility & contrast

On white

5.39
#AF2FB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#AF2FB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2FB5
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2FB5#FFFFFF#000000##FFFFFF
##AF2FB51.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0260B9
Deuteranopia (green-blind)
#4E70B2
Tritanopia (blue-blind)
#B34670
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af2fb5;
/* rgb */ color: rgb(175, 47, 181);
/* oklch */ color: oklch(55.4% 0.219 326.1);
Tailwind
colors: {
  custom: {
    50: '#cb75cc',
    500: '#af2fb5',
    950: '#000000',
  },
}
SCSS
$custom: #af2fb5;
$custom-light: #cb75cc;
$custom-dark: #000000;
JSON
{
  "hex": "#af2fb5",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 181
  },
  "hsl": {
    "h": 297.313,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.55406,
    "c": 0.21927,
    "h": 326.1
  },
  "luminance": 0.14483
}

Semantic roles & 50–950 ramp

primary
#AF2FB5
secondary
#7CC779
accent
#E2464D
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140913
muted
#827B82

Preview Lab

Preview with #AF2FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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