#AF2FB1#AF2FB1

#AF2FB1 is a mid, highly saturated purple. Relative luminance 0.143; OKLCH L 55.2% C 0.216 H 327.4°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#AF2FB1
RGBrgb(175, 47, 177)
HSLhsl(299, 58%, 44%)
HSVhsv(299, 73%, 69%)
CMYKcmyk(1.1%, 73.4%, 0%, 30.6%)
CIE-LABlab(44.69, 65.57, -42.03)
CIE-LCHlch(44.69, 77.89, 327.34°)
OKLaboklab(55.17% 0.182 -0.1166)
OKLCHoklch(55.17% 0.216 327.4)
XYZxyz(26.6311, 14.3232, 42.9484)
Luminance0.1432 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2FB1 #31B12F
analogous
#6E2FB1 #AF2FB1 #B12F72
triadic
#AF2FB1 #B1AF2F #2FB1AF
tetradic
#AF2FB1 #B16E2F #31B12F #2F72B1
square
#AF2FB1 #B16E2F #31B12F #2F72B1
split-complementary
#AF2FB1 #72B12F #2FB16E
monochromatic
#4F1550 #7F2281 #AF2FB1 #CE4DD0 #DB7EDD

Accessibility & contrast

On white

5.43
#AF2FB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#AF2FB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2FB1
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2FB1#FFFFFF#000000##FFFFFF
##AF2FB11.005.433.865.43
#FFFFFF5.431.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#105FB5
Deuteranopia (green-blind)
#516FAE
Tritanopia (blue-blind)
#B4446E
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af2fb1;
/* rgb */ color: rgb(175, 47, 177);
/* oklch */ color: oklch(55.2% 0.216 327.4);
Tailwind
colors: {
  custom: {
    50: '#cb75c9',
    500: '#af2fb1',
    950: '#000000',
  },
}
SCSS
$custom: #af2fb1;
$custom-light: #cb75c9;
$custom-dark: #000000;
JSON
{
  "hex": "#af2fb1",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 177
  },
  "hsl": {
    "h": 299.077,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.5517,
    "c": 0.21616,
    "h": 327.4
  },
  "luminance": 0.14321
}

Semantic roles & 50–950 ramp

primary
#AF2FB1
secondary
#78C576
accent
#E14749
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AF2FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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