#AF30AC#AF30AC

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

Color values

HEX#AF30AC
RGBrgb(175, 48, 172)
HSLhsl(301, 57%, 44%)
HSVhsv(301, 73%, 69%)
CMYKcmyk(0%, 72.6%, 1.7%, 31.4%)
CIE-LABlab(44.53, 64.43, -39.34)
CIE-LCHlch(44.53, 75.48, 328.59°)
OKLaboklab(54.97% 0.1811 -0.1088)
OKLCHoklch(54.97% 0.211 329)
XYZxyz(26.1823, 14.2084, 40.3852)
Luminance0.1421 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF30AC #30AF33
analogous
#7230AF #AF30AC #AF306C
triadic
#AF30AC #ACAF30 #30ACAF
tetradic
#AF30AC #AF7230 #30AF33 #306CAF
square
#AF30AC #AF7230 #30AF33 #306CAF
split-complementary
#AF30AC #6CAF30 #30AF72
monochromatic
#4F164E #7F237D #AF30AC #CE4ECB #DC7ED9

Accessibility & contrast

On white

5.47
#AF30AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#AF30AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF30AC
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF30AC#FFFFFF#000000##FFFFFF
##AF30AC1.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C5FAF
Deuteranopia (green-blind)
#546FA9
Tritanopia (blue-blind)
#B5426B
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #af30ac;
/* rgb */ color: rgb(175, 48, 172);
/* oklch */ color: oklch(55.0% 0.211 329.0);
Tailwind
colors: {
  custom: {
    50: '#cb75c5',
    500: '#af30ac',
    950: '#000000',
  },
}
SCSS
$custom: #af30ac;
$custom-light: #cb75c5;
$custom-dark: #000000;
JSON
{
  "hex": "#af30ac",
  "rgb": {
    "r": 175,
    "g": 48,
    "b": 172
  },
  "hsl": {
    "h": 301.417,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.54965,
    "c": 0.21125,
    "h": 329
  },
  "luminance": 0.14206
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF30AC

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

Preview Lab → · Contrast checker → · Palette generator →

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