#AF33B1#AF33B1

#AF33B1 is a mid, highly saturated purple. Relative luminance 0.147; OKLCH L 55.5% C 0.212 H 327.3°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#AF33B1
RGBrgb(175, 51, 177)
HSLhsl(299, 55%, 45%)
HSVhsv(299, 71%, 69%)
CMYKcmyk(1.1%, 71.2%, 0%, 30.6%)
CIE-LABlab(45.16, 64.23, -41.29)
CIE-LCHlch(45.16, 76.36, 327.27°)
OKLaboklab(55.51% 0.1783 -0.1145)
OKLCHoklch(55.51% 0.212 327.3)
XYZxyz(26.7984, 14.6578, 43.0042)
Luminance0.1466 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF33B1 #35B133
analogous
#7033B1 #AF33B1 #B13374
triadic
#AF33B1 #B1AF33 #33B1AF
tetradic
#AF33B1 #B17033 #35B133 #3374B1
square
#AF33B1 #B17033 #35B133 #3374B1
split-complementary
#AF33B1 #74B133 #33B170
monochromatic
#511852 #802581 #AF33B1 #CC54CE #DA83DB

Accessibility & contrast

On white

5.34
#AF33B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#AF33B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF33B1
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF33B1#FFFFFF#000000##FFFFFF
##AF33B11.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A61B5
Deuteranopia (green-blind)
#5370AE
Tritanopia (blue-blind)
#B4466F
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #af33b1;
/* rgb */ color: rgb(175, 51, 177);
/* oklch */ color: oklch(55.5% 0.212 327.3);
Tailwind
colors: {
  custom: {
    50: '#cb77c9',
    500: '#af33b1',
    950: '#000000',
  },
}
SCSS
$custom: #af33b1;
$custom-light: #cb77c9;
$custom-dark: #000000;
JSON
{
  "hex": "#af33b1",
  "rgb": {
    "r": 175,
    "g": 51,
    "b": 177
  },
  "hsl": {
    "h": 299.048,
    "s": 55.263,
    "l": 44.706
  },
  "oklch": {
    "l": 0.55506,
    "c": 0.21184,
    "h": 327.3
  },
  "luminance": 0.14656
}

Semantic roles & 50–950 ramp

primary
#AF33B1
secondary
#7CC57B
accent
#DF494C
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AF33B1

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

Preview Lab → · Contrast checker → · Palette generator →

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