#AF22B0#AF22B0

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

Color values

HEX#AF22B0
RGBrgb(175, 34, 176)
HSLhsl(300, 68%, 41%)
HSVhsv(300, 81%, 69%)
CMYKcmyk(0.6%, 80.7%, 0%, 31%)
CIE-LABlab(43.35, 69.11, -43.58)
CIE-LCHlch(43.35, 81.70, 327.77°)
OKLaboklab(54.2% 0.1925 -0.121)
OKLCHoklch(54.2% 0.227 327.8)
XYZxyz(26.0874, 13.3946, 42.2773)
Luminance0.1339 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF22B0 #23B022
analogous
#6822B0 #AF22B0 #B0226A
triadic
#AF22B0 #B0AF22 #22B0AF
tetradic
#AF22B0 #B06822 #23B022 #226AB0
square
#AF22B0 #B06822 #23B022 #226AB0
split-complementary
#AF22B0 #6AB022 #22B068
monochromatic
#490E49 #7C187D #AF22B0 #D737D8 #E16AE2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF22B0#FFFFFF#000000##FFFFFF
##AF22B01.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)
#005BB4
Deuteranopia (green-blind)
#4C6CAD
Tritanopia (blue-blind)
#B53C6A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af22b0;
/* rgb */ color: rgb(175, 34, 176);
/* oklch */ color: oklch(54.2% 0.227 327.8);
Tailwind
colors: {
  custom: {
    50: '#cb70c8',
    500: '#af22b0',
    950: '#000000',
  },
}
SCSS
$custom: #af22b0;
$custom-light: #cb70c8;
$custom-dark: #000000;
JSON
{
  "hex": "#af22b0",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 176
  },
  "hsl": {
    "h": 299.577,
    "s": 67.619,
    "l": 41.176
  },
  "oklch": {
    "l": 0.54197,
    "c": 0.22737,
    "h": 327.8
  },
  "luminance": 0.13393
}

Semantic roles & 50–950 ramp

primary
#AF22B0
secondary
#66C866
accent
#EA3D3F
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #AF22B0

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

Preview Lab → · Contrast checker → · Palette generator →

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