#AF1EB3#AF1EB3

#AF1EB3 is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 54.2% C 0.233 H 326.9°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#AF1EB3
RGBrgb(175, 30, 179)
HSLhsl(298, 71%, 41%)
HSVhsv(298, 83%, 70%)
CMYKcmyk(2.2%, 83.2%, 0%, 29.8%)
CIE-LABlab(43.21, 70.52, -45.58)
CIE-LCHlch(43.21, 83.96, 327.12°)
OKLaboklab(54.15% 0.1949 -0.1268)
OKLCHoklch(54.15% 0.233 326.9)
XYZxyz(26.2797, 13.2991, 43.8219)
Luminance0.1330 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF1EB3 #22B31E
analogous
#641EB3 #AF1EB3 #B31E6C
triadic
#AF1EB3 #B3AF1E #1EB3AF
tetradic
#AF1EB3 #B3641E #22B31E #1E6CB3
square
#AF1EB3 #B3641E #22B31E #1E6CB3
split-complementary
#AF1EB3 #6CB31E #1EB364
monochromatic
#490C4A #7C157F #AF1EB3 #D832DD #E266E5

Accessibility & contrast

On white

5.74
#AF1EB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#AF1EB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF1EB3
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF1EB3#FFFFFF#000000##FFFFFF
##AF1EB31.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB7
Deuteranopia (green-blind)
#496CB0
Tritanopia (blue-blind)
#B43C6B
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af1eb3;
/* rgb */ color: rgb(175, 30, 179);
/* oklch */ color: oklch(54.2% 0.233 326.9);
Tailwind
colors: {
  custom: {
    50: '#cb6fca',
    500: '#af1eb3',
    950: '#000000',
  },
}
SCSS
$custom: #af1eb3;
$custom-light: #cb6fca;
$custom-dark: #000000;
JSON
{
  "hex": "#af1eb3",
  "rgb": {
    "r": 175,
    "g": 30,
    "b": 179
  },
  "hsl": {
    "h": 298.389,
    "s": 71.292,
    "l": 40.98
  },
  "oklch": {
    "l": 0.54154,
    "c": 0.23254,
    "h": 326.9
  },
  "luminance": 0.13297
}

Semantic roles & 50–950 ramp

primary
#AF1EB3
secondary
#65CB62
accent
#EE3A3F
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #AF1EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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