#AF30A9#AF30A9

#AF30A9 is a mid, highly saturated purple. Relative luminance 0.141; OKLCH L 54.8% C 0.209 H 330.0°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#AF30A9
RGBrgb(175, 48, 169)
HSLhsl(303, 57%, 44%)
HSVhsv(303, 73%, 69%)
CMYKcmyk(0%, 72.6%, 3.4%, 31.4%)
CIE-LABlab(44.37, 63.94, -37.81)
CIE-LCHlch(44.37, 74.28, 329.40°)
OKLaboklab(54.8% 0.181 -0.1044)
OKLCHoklch(54.8% 0.209 330)
XYZxyz(25.8974, 14.0944, 38.8849)
Luminance0.1409 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF30A9 #30AF36
analogous
#7530AF #AF30A9 #AF3069
triadic
#AF30A9 #A9AF30 #30A9AF
tetradic
#AF30A9 #AF7530 #30AF36 #3069AF
square
#AF30A9 #AF7530 #30AF36 #3069AF
split-complementary
#AF30A9 #69AF30 #30AF75
monochromatic
#4F164C #7F237B #AF30A9 #CE4EC8 #DC7ED7

Accessibility & contrast

On white

5.50
#AF30A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#AF30A9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF30A9
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF30A9#FFFFFF#000000##FFFFFF
##AF30A91.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215EAC
Deuteranopia (green-blind)
#566FA6
Tritanopia (blue-blind)
#B6416A
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #af30a9;
/* rgb */ color: rgb(175, 48, 169);
/* oklch */ color: oklch(54.8% 0.209 330.0);
Tailwind
colors: {
  custom: {
    50: '#cb75c3',
    500: '#af30a9',
    950: '#000000',
  },
}
SCSS
$custom: #af30a9;
$custom-light: #cb75c3;
$custom-dark: #000000;
JSON
{
  "hex": "#af30a9",
  "rgb": {
    "r": 175,
    "g": 48,
    "b": 169
  },
  "hsl": {
    "h": 302.835,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.54796,
    "c": 0.20897,
    "h": 330
  },
  "luminance": 0.14092
}

Semantic roles & 50–950 ramp

primary
#AF30A9
secondary
#76C47A
accent
#E04F48
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140912
muted
#827B81

Preview Lab

Preview with #AF30A9

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

Preview Lab → · Contrast checker → · Palette generator →

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