#AF33B5#AF33B5

#AF33B5 is a mid, highly saturated purple. Relative luminance 0.148; OKLCH L 55.7% C 0.215 H 326.0°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#AF33B5
RGBrgb(175, 51, 181)
HSLhsl(297, 56%, 45%)
HSVhsv(297, 72%, 71%)
CMYKcmyk(3.3%, 71.8%, 0%, 29%)
CIE-LABlab(45.39, 64.91, -43.29)
CIE-LCHlch(45.39, 78.02, 326.30°)
OKLaboklab(55.74% 0.1782 -0.1203)
OKLCHoklch(55.74% 0.215 326)
XYZxyz(27.2030, 14.8196, 45.1348)
Luminance0.1482 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF33B5 #39B533
analogous
#6E33B5 #AF33B5 #B5337A
triadic
#AF33B5 #B5AF33 #33B5AF
tetradic
#AF33B5 #B56E33 #39B533 #337AB5
square
#AF33B5 #B56E33 #39B533 #337AB5
split-complementary
#AF33B5 #7AB533 #33B56E
monochromatic
#531856 #812685 #AF33B5 #CA56CF #D986DD

Accessibility & contrast

On white

5.30
#AF33B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#AF33B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF33B5
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF33B5#FFFFFF#000000##FFFFFF
##AF33B51.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1162B9
Deuteranopia (green-blind)
#5071B2
Tritanopia (blue-blind)
#B34871
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #af33b5;
/* rgb */ color: rgb(175, 51, 181);
/* oklch */ color: oklch(55.7% 0.215 326.0);
Tailwind
colors: {
  custom: {
    50: '#cb77cc',
    500: '#af33b5',
    950: '#000000',
  },
}
SCSS
$custom: #af33b5;
$custom-light: #cb77cc;
$custom-dark: #000000;
JSON
{
  "hex": "#af33b5",
  "rgb": {
    "r": 175,
    "g": 51,
    "b": 181
  },
  "hsl": {
    "h": 297.231,
    "s": 56.034,
    "l": 45.49
  },
  "oklch": {
    "l": 0.55739,
    "c": 0.21501,
    "h": 326
  },
  "luminance": 0.14818
}

Semantic roles & 50–950 ramp

primary
#AF33B5
secondary
#81C67D
accent
#DF484F
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF33B5

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

Preview Lab → · Contrast checker → · Palette generator →

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