#AF33B9#AF33B9

#AF33B9 is a mid, highly saturated purple. Relative luminance 0.150; OKLCH L 56.0% C 0.218 H 324.7°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#AF33B9
RGBrgb(175, 51, 185)
HSLhsl(296, 57%, 46%)
HSVhsv(296, 72%, 73%)
CMYKcmyk(5.4%, 72.4%, 0%, 27.5%)
CIE-LABlab(45.62, 65.60, -45.27)
CIE-LCHlch(45.62, 79.70, 325.39°)
OKLaboklab(55.98% 0.1781 -0.126)
OKLCHoklch(55.98% 0.218 324.7)
XYZxyz(27.6193, 14.9861, 47.3274)
Luminance0.1498 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF33B9 #3DB933
analogous
#6C33B9 #AF33B9 #B93380
triadic
#AF33B9 #B9AF33 #33B9AF
tetradic
#AF33B9 #B96C33 #3DB933 #3380B9
square
#AF33B9 #B96C33 #3DB933 #3380B9
split-complementary
#AF33B9 #80B933 #33B96C
monochromatic
#541959 #822689 #AF33B9 #C858D1 #D888DE

Accessibility & contrast

On white

5.25
#AF33B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#AF33B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF33B9
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF33B9#FFFFFF#000000##FFFFFF
##AF33B91.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0262BD
Deuteranopia (green-blind)
#4E71B6
Tritanopia (blue-blind)
#B34A73
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #af33b9;
/* rgb */ color: rgb(175, 51, 185);
/* oklch */ color: oklch(56.0% 0.218 324.7);
Tailwind
colors: {
  custom: {
    50: '#cb77ce',
    500: '#af33b9',
    950: '#000000',
  },
}
SCSS
$custom: #af33b9;
$custom-light: #cb77ce;
$custom-dark: #000000;
JSON
{
  "hex": "#af33b9",
  "rgb": {
    "r": 175,
    "g": 51,
    "b": 185
  },
  "hsl": {
    "h": 295.522,
    "s": 56.78,
    "l": 46.275
  },
  "oklch": {
    "l": 0.55976,
    "c": 0.21821,
    "h": 324.7
  },
  "luminance": 0.14984
}

Semantic roles & 50–950 ramp

primary
#AF33B9
secondary
#85C880
accent
#E04853
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140A14
muted
#827C82

Preview Lab

Preview with #AF33B9

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

Preview Lab → · Contrast checker → · Palette generator →

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