#AF30AD#AF30AD

#AF30AD is a mid, highly saturated purple. Relative luminance 0.142; OKLCH L 55.0% C 0.212 H 328.7°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#AF30AD
RGBrgb(175, 48, 173)
HSLhsl(301, 57%, 44%)
HSVhsv(301, 73%, 69%)
CMYKcmyk(0%, 72.6%, 1.1%, 31.4%)
CIE-LABlab(44.59, 64.59, -39.84)
CIE-LCHlch(44.59, 75.89, 328.33°)
OKLaboklab(55.02% 0.1811 -0.1102)
OKLCHoklch(55.02% 0.212 328.7)
XYZxyz(26.2787, 14.2469, 40.8929)
Luminance0.1424 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF30AD #30AF32
analogous
#7130AF #AF30AD #AF306D
triadic
#AF30AD #ADAF30 #30ADAF
tetradic
#AF30AD #AF7130 #30AF32 #306DAF
square
#AF30AD #AF7130 #30AF32 #306DAF
split-complementary
#AF30AD #6DAF30 #30AF71
monochromatic
#4F164E #7F237E #AF30AD #CE4ECC #DC7EDA

Accessibility & contrast

On white

5.46
#AF30AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#AF30AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF30AD
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF30AD#FFFFFF#000000##FFFFFF
##AF30AD1.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B5FB0
Deuteranopia (green-blind)
#546FAA
Tritanopia (blue-blind)
#B5436C
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #af30ad;
/* rgb */ color: rgb(175, 48, 173);
/* oklch */ color: oklch(55.0% 0.212 328.7);
Tailwind
colors: {
  custom: {
    50: '#cb75c6',
    500: '#af30ad',
    950: '#000000',
  },
}
SCSS
$custom: #af30ad;
$custom-light: #cb75c6;
$custom-dark: #000000;
JSON
{
  "hex": "#af30ad",
  "rgb": {
    "r": 175,
    "g": 48,
    "b": 173
  },
  "hsl": {
    "h": 300.945,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.55022,
    "c": 0.21201,
    "h": 328.7
  },
  "luminance": 0.14245
}

Semantic roles & 50–950 ramp

primary
#AF30AD
secondary
#76C478
accent
#E04A48
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AF30AD

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

Preview Lab → · Contrast checker → · Palette generator →

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