#AF30B1#AF30B1

#AF30B1 is a mid, highly saturated purple. Relative luminance 0.144; OKLCH L 55.3% C 0.215 H 327.3°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#AF30B1
RGBrgb(175, 48, 177)
HSLhsl(299, 57%, 44%)
HSVhsv(299, 73%, 69%)
CMYKcmyk(1.1%, 72.9%, 0%, 30.6%)
CIE-LABlab(44.81, 65.25, -41.85)
CIE-LCHlch(44.81, 77.52, 327.32°)
OKLaboklab(55.25% 0.1811 -0.1161)
OKLCHoklch(55.25% 0.215 327.3)
XYZxyz(26.6716, 14.4041, 42.9619)
Luminance0.1440 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF30B1 #32B130
analogous
#6F30B1 #AF30B1 #B13073
triadic
#AF30B1 #B1AF30 #30B1AF
tetradic
#AF30B1 #B16F30 #32B130 #3073B1
square
#AF30B1 #B16F30 #32B130 #3073B1
split-complementary
#AF30B1 #73B130 #30B16F
monochromatic
#501651 #7F2381 #AF30B1 #CD4FCF #DB7FDC

Accessibility & contrast

On white

5.41
#AF30B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#AF30B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF30B1
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF30B1#FFFFFF#000000##FFFFFF
##AF30B11.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1360B5
Deuteranopia (green-blind)
#5170AE
Tritanopia (blue-blind)
#B4456E
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af30b1;
/* rgb */ color: rgb(175, 48, 177);
/* oklch */ color: oklch(55.3% 0.215 327.3);
Tailwind
colors: {
  custom: {
    50: '#cb75c9',
    500: '#af30b1',
    950: '#000000',
  },
}
SCSS
$custom: #af30b1;
$custom-light: #cb75c9;
$custom-dark: #000000;
JSON
{
  "hex": "#af30b1",
  "rgb": {
    "r": 175,
    "g": 48,
    "b": 177
  },
  "hsl": {
    "h": 299.07,
    "s": 57.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.55252,
    "c": 0.21511,
    "h": 327.3
  },
  "luminance": 0.14402
}

Semantic roles & 50–950 ramp

primary
#AF30B1
secondary
#79C578
accent
#E1474A
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AF30B1

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

Preview Lab → · Contrast checker → · Palette generator →

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