#AF30AB#AF30AB

#AF30AB is a mid, highly saturated purple. Relative luminance 0.142; OKLCH L 54.9% C 0.210 H 329.3°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#AF30AB
RGBrgb(175, 48, 171)
HSLhsl(302, 57%, 44%)
HSVhsv(302, 73%, 69%)
CMYKcmyk(0%, 72.6%, 2.3%, 31.4%)
CIE-LABlab(44.48, 64.26, -38.83)
CIE-LCHlch(44.48, 75.08, 328.86°)
OKLaboklab(54.91% 0.1811 -0.1073)
OKLCHoklch(54.91% 0.21 329.3)
XYZxyz(26.0866, 14.1701, 39.8813)
Luminance0.1417 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF30AB #30AF34
analogous
#7330AF #AF30AB #AF306B
triadic
#AF30AB #ABAF30 #30ABAF
tetradic
#AF30AB #AF7330 #30AF34 #306BAF
square
#AF30AB #AF7330 #30AF34 #306BAF
split-complementary
#AF30AB #6BAF30 #30AF73
monochromatic
#4F164D #7F237C #AF30AB #CE4ECA #DC7ED9

Accessibility & contrast

On white

5.48
#AF30AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#AF30AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF30AB
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF30AB#FFFFFF#000000##FFFFFF
##AF30AB1.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E5EAE
Deuteranopia (green-blind)
#556FA8
Tritanopia (blue-blind)
#B5426B
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #af30ab;
/* rgb */ color: rgb(175, 48, 171);
/* oklch */ color: oklch(54.9% 0.210 329.3);
Tailwind
colors: {
  custom: {
    50: '#cb75c4',
    500: '#af30ab',
    950: '#000000',
  },
}
SCSS
$custom: #af30ab;
$custom-light: #cb75c4;
$custom-dark: #000000;
JSON
{
  "hex": "#af30ab",
  "rgb": {
    "r": 175,
    "g": 48,
    "b": 171
  },
  "hsl": {
    "h": 301.89,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.54908,
    "c": 0.21049,
    "h": 329.3
  },
  "luminance": 0.14168
}

Semantic roles & 50–950 ramp

primary
#AF30AB
secondary
#76C479
accent
#E04C48
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AF30AB

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

Preview Lab → · Contrast checker → · Palette generator →

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