#AF20B1#AF20B1

#AF20B1 is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 54.1% C 0.230 H 327.6°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#AF20B1
RGBrgb(175, 32, 177)
HSLhsl(299, 69%, 41%)
HSVhsv(299, 82%, 69%)
CMYKcmyk(1.1%, 81.9%, 0%, 30.6%)
CIE-LABlab(43.25, 69.75, -44.34)
CIE-LCHlch(43.25, 82.65, 327.56°)
OKLaboklab(54.14% 0.1938 -0.1232)
OKLCHoklch(54.14% 0.23 327.6)
XYZxyz(26.1312, 13.3233, 42.7818)
Luminance0.1332 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF20B1 #22B120
analogous
#6620B1 #AF20B1 #B1206A
triadic
#AF20B1 #B1AF20 #20B1AF
tetradic
#AF20B1 #B16620 #22B120 #206AB1
square
#AF20B1 #B16620 #22B120 #206AB1
split-complementary
#AF20B1 #6AB120 #20B166
monochromatic
#490D49 #7C177D #AF20B1 #D834DA #E268E4

Accessibility & contrast

On white

5.73
#AF20B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF20B1
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF20B1#FFFFFF#000000##FFFFFF
##AF20B11.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB5
Deuteranopia (green-blind)
#4B6CAE
Tritanopia (blue-blind)
#B43C6B
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af20b1;
/* rgb */ color: rgb(175, 32, 177);
/* oklch */ color: oklch(54.1% 0.230 327.6);
Tailwind
colors: {
  custom: {
    50: '#cb70c9',
    500: '#af20b1',
    950: '#000000',
  },
}
SCSS
$custom: #af20b1;
$custom-light: #cb70c9;
$custom-dark: #000000;
JSON
{
  "hex": "#af20b1",
  "rgb": {
    "r": 175,
    "g": 32,
    "b": 177
  },
  "hsl": {
    "h": 299.172,
    "s": 69.378,
    "l": 40.98
  },
  "oklch": {
    "l": 0.54141,
    "c": 0.22963,
    "h": 327.6
  },
  "luminance": 0.13321
}

Semantic roles & 50–950 ramp

primary
#AF20B1
secondary
#65C964
accent
#EC3C3E
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #AF20B1

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

Preview Lab → · Contrast checker → · Palette generator →

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