#AF30B5#AF30B5

#AF30B5 is a mid, highly saturated purple. Relative luminance 0.146; OKLCH L 55.5% C 0.218 H 326.0°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#AF30B5
RGBrgb(175, 48, 181)
HSLhsl(297, 58%, 45%)
HSVhsv(297, 73%, 71%)
CMYKcmyk(3.3%, 73.5%, 0%, 29%)
CIE-LABlab(45.03, 65.92, -43.85)
CIE-LCHlch(45.03, 79.17, 326.37°)
OKLaboklab(55.49% 0.181 -0.1219)
OKLCHoklch(55.49% 0.218 326)
XYZxyz(27.0761, 14.5659, 45.0925)
Luminance0.1456 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF30B5 #36B530
analogous
#6C30B5 #AF30B5 #B53079
triadic
#AF30B5 #B5AF30 #30B5AF
tetradic
#AF30B5 #B56C30 #36B530 #3079B5
square
#AF30B5 #B56C30 #36B530 #3079B5
split-complementary
#AF30B5 #79B530 #30B56C
monochromatic
#511654 #802385 #AF30B5 #CB51D1 #DA82DE

Accessibility & contrast

On white

5.37
#AF30B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#AF30B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF30B5
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF30B5#FFFFFF#000000##FFFFFF
##AF30B51.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0660B9
Deuteranopia (green-blind)
#4F70B2
Tritanopia (blue-blind)
#B34670
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #af30b5;
/* rgb */ color: rgb(175, 48, 181);
/* oklch */ color: oklch(55.5% 0.218 326.0);
Tailwind
colors: {
  custom: {
    50: '#cb76cc',
    500: '#af30b5',
    950: '#000000',
  },
}
SCSS
$custom: #af30b5;
$custom-light: #cb76cc;
$custom-dark: #000000;
JSON
{
  "hex": "#af30b5",
  "rgb": {
    "r": 175,
    "g": 48,
    "b": 181
  },
  "hsl": {
    "h": 297.293,
    "s": 58.079,
    "l": 44.902
  },
  "oklch": {
    "l": 0.55487,
    "c": 0.21823,
    "h": 326
  },
  "luminance": 0.14564
}

Semantic roles & 50–950 ramp

primary
#AF30B5
secondary
#7DC77A
accent
#E1464D
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140913
muted
#827B82

Preview Lab

Preview with #AF30B5

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

Preview Lab → · Contrast checker → · Palette generator →

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