#AF1EB1#AF1EB1

#AF1EB1 is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 54.0% C 0.231 H 327.6°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#AF1EB1
RGBrgb(175, 30, 177)
HSLhsl(299, 71%, 41%)
HSVhsv(299, 83%, 69%)
CMYKcmyk(1.1%, 83.1%, 0%, 30.6%)
CIE-LABlab(43.09, 70.20, -44.59)
CIE-LCHlch(43.09, 83.16, 327.58°)
OKLaboklab(54.03% 0.1951 -0.1239)
OKLCHoklch(54.03% 0.231 327.6)
XYZxyz(26.0789, 13.2188, 42.7644)
Luminance0.1322 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF1EB1 #20B11E
analogous
#661EB1 #AF1EB1 #B11E69
triadic
#AF1EB1 #B1AF1E #1EB1AF
tetradic
#AF1EB1 #B1661E #20B11E #1E69B1
square
#AF1EB1 #B1661E #20B11E #1E69B1
split-complementary
#AF1EB1 #69B11E #1EB166
monochromatic
#480C48 #7B157D #AF1EB1 #DA30DC #E365E5

Accessibility & contrast

On white

5.76
#AF1EB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#AF1EB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF1EB1
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF1EB1#FFFFFF#000000##FFFFFF
##AF1EB11.005.763.645.76
#FFFFFF5.761.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB5
Deuteranopia (green-blind)
#4A6CAE
Tritanopia (blue-blind)
#B43B6A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af1eb1;
/* rgb */ color: rgb(175, 30, 177);
/* oklch */ color: oklch(54.0% 0.231 327.6);
Tailwind
colors: {
  custom: {
    50: '#cb6fc9',
    500: '#af1eb1',
    950: '#000000',
  },
}
SCSS
$custom: #af1eb1;
$custom-light: #cb6fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#af1eb1",
  "rgb": {
    "r": 175,
    "g": 30,
    "b": 177
  },
  "hsl": {
    "h": 299.184,
    "s": 71.014,
    "l": 40.588
  },
  "oklch": {
    "l": 0.54032,
    "c": 0.23109,
    "h": 327.6
  },
  "luminance": 0.13217
}

Semantic roles & 50–950 ramp

primary
#AF1EB1
secondary
#62CA61
accent
#EE3A3C
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #AF1EB1

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

Preview Lab → · Contrast checker → · Palette generator →

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