#AF33B4#AF33B4

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

Color values

HEX#AF33B4
RGBrgb(175, 51, 180)
HSLhsl(298, 56%, 45%)
HSVhsv(298, 72%, 71%)
CMYKcmyk(2.8%, 71.7%, 0%, 29.4%)
CIE-LABlab(45.33, 64.74, -42.79)
CIE-LCHlch(45.33, 77.60, 326.54°)
OKLaboklab(55.68% 0.1782 -0.1188)
OKLCHoklch(55.68% 0.214 326.3)
XYZxyz(27.1007, 14.7787, 44.5963)
Luminance0.1478 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF33B4 #38B433
analogous
#6E33B4 #AF33B4 #B43379
triadic
#AF33B4 #B4AF33 #33B4AF
tetradic
#AF33B4 #B46E33 #38B433 #3379B4
square
#AF33B4 #B46E33 #38B433 #3379B4
split-complementary
#AF33B4 #79B433 #33B46E
monochromatic
#521855 #812584 #AF33B4 #CA55CF #D985DC

Accessibility & contrast

On white

5.31
#AF33B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF33B4
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF33B4#FFFFFF#000000##FFFFFF
##AF33B41.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1361B8
Deuteranopia (green-blind)
#5171B1
Tritanopia (blue-blind)
#B44871
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #af33b4;
/* rgb */ color: rgb(175, 51, 180);
/* oklch */ color: oklch(55.7% 0.214 326.3);
Tailwind
colors: {
  custom: {
    50: '#cb77cb',
    500: '#af33b4',
    950: '#000000',
  },
}
SCSS
$custom: #af33b4;
$custom-light: #cb77cb;
$custom-dark: #000000;
JSON
{
  "hex": "#af33b4",
  "rgb": {
    "r": 175,
    "g": 51,
    "b": 180
  },
  "hsl": {
    "h": 297.674,
    "s": 55.844,
    "l": 45.294
  },
  "oklch": {
    "l": 0.5568,
    "c": 0.21421,
    "h": 326.3
  },
  "luminance": 0.14777
}

Semantic roles & 50–950 ramp

primary
#AF33B4
secondary
#80C67D
accent
#DF494E
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF33B4

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

Preview Lab → · Contrast checker → · Palette generator →

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