#AF20B3#AF20B3

#AF20B3 is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 54.3% C 0.231 H 326.9°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#AF20B3
RGBrgb(175, 32, 179)
HSLhsl(298, 70%, 41%)
HSVhsv(298, 82%, 70%)
CMYKcmyk(2.2%, 82.1%, 0%, 29.8%)
CIE-LABlab(43.37, 70.07, -45.33)
CIE-LCHlch(43.37, 83.45, 327.10°)
OKLaboklab(54.26% 0.1936 -0.1261)
OKLCHoklch(54.26% 0.231 326.9)
XYZxyz(26.3320, 13.4036, 43.8393)
Luminance0.1340 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF20B3 #24B320
analogous
#6620B3 #AF20B3 #B3206E
triadic
#AF20B3 #B3AF20 #20B3AF
tetradic
#AF20B3 #B36620 #24B320 #206EB3
square
#AF20B3 #B36620 #24B320 #206EB3
split-complementary
#AF20B3 #6EB320 #20B366
monochromatic
#490D4B #7C177F #AF20B3 #D635DB #E169E4

Accessibility & contrast

On white

5.71
#AF20B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#AF20B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF20B3
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF20B3#FFFFFF#000000##FFFFFF
##AF20B31.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af20b3;
/* rgb */ color: rgb(175, 32, 179);
/* oklch */ color: oklch(54.3% 0.231 326.9);
Tailwind
colors: {
  custom: {
    50: '#cb70ca',
    500: '#af20b3',
    950: '#000000',
  },
}
SCSS
$custom: #af20b3;
$custom-light: #cb70ca;
$custom-dark: #000000;
JSON
{
  "hex": "#af20b3",
  "rgb": {
    "r": 175,
    "g": 32,
    "b": 179
  },
  "hsl": {
    "h": 298.367,
    "s": 69.668,
    "l": 41.373
  },
  "oklch": {
    "l": 0.54264,
    "c": 0.23108,
    "h": 326.9
  },
  "luminance": 0.13402
}

Semantic roles & 50–950 ramp

primary
#AF20B3
secondary
#68CA65
accent
#EC3B40
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #AF20B3

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

Preview Lab → · Contrast checker → · Palette generator →

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