#AF33BA#AF33BA

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

Color values

HEX#AF33BA
RGBrgb(175, 51, 186)
HSLhsl(295, 57%, 46%)
HSVhsv(295, 73%, 73%)
CMYKcmyk(5.9%, 72.6%, 0%, 27.1%)
CIE-LABlab(45.67, 65.77, -45.76)
CIE-LCHlch(45.67, 80.12, 325.17°)
OKLaboklab(56.04% 0.1781 -0.1275)
OKLCHoklch(56.04% 0.219 324.4)
XYZxyz(27.7252, 15.0285, 47.8853)
Luminance0.1503 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF33BA #3EBA33
analogous
#6C33BA #AF33BA #BA3382
triadic
#AF33BA #BAAF33 #33BAAF
tetradic
#AF33BA #BA6C33 #3EBA33 #3382BA
square
#AF33BA #BA6C33 #3EBA33 #3382BA
split-complementary
#AF33BA #82BA33 #33BA6C
monochromatic
#55195A #82268A #AF33BA #C859D1 #D889DF

Accessibility & contrast

On white

5.24
#AF33BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#AF33BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF33BA
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF33BA#FFFFFF#000000##FFFFFF
##AF33BA1.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063BE
Deuteranopia (green-blind)
#4D71B7
Tritanopia (blue-blind)
#B24B74
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #af33ba;
/* rgb */ color: rgb(175, 51, 186);
/* oklch */ color: oklch(56.0% 0.219 324.4);
Tailwind
colors: {
  custom: {
    50: '#cb77cf',
    500: '#af33ba',
    950: '#000000',
  },
}
SCSS
$custom: #af33ba;
$custom-light: #cb77cf;
$custom-dark: #000000;
JSON
{
  "hex": "#af33ba",
  "rgb": {
    "r": 175,
    "g": 51,
    "b": 186
  },
  "hsl": {
    "h": 295.111,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.56037,
    "c": 0.21901,
    "h": 324.4
  },
  "luminance": 0.15027
}

Semantic roles & 50–950 ramp

primary
#AF33BA
secondary
#86C980
accent
#E04854
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140A14
muted
#827C82

Preview Lab

Preview with #AF33BA

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

Preview Lab → · Contrast checker → · Palette generator →

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