#AF30A6#AF30A6

#AF30A6 is a mid, highly saturated purple. Relative luminance 0.140; OKLCH L 54.6% C 0.207 H 331.1°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#AF30A6
RGBrgb(175, 48, 166)
HSLhsl(304, 57%, 44%)
HSVhsv(304, 73%, 69%)
CMYKcmyk(0%, 72.6%, 5.1%, 31.4%)
CIE-LABlab(44.21, 63.46, -36.28)
CIE-LCHlch(44.21, 73.10, 330.24°)
OKLaboklab(54.63% 0.1809 -0.0999)
OKLCHoklch(54.63% 0.207 331.1)
XYZxyz(25.6190, 13.9831, 37.4187)
Luminance0.1398 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF30A6 #30AF39
analogous
#7830AF #AF30A6 #AF3066
triadic
#AF30A6 #A6AF30 #30A6AF
tetradic
#AF30A6 #AF7830 #30AF39 #3066AF
square
#AF30A6 #AF7830 #30AF39 #3066AF
split-complementary
#AF30A6 #66AF30 #30AF78
monochromatic
#4F164B #7F2378 #AF30A6 #CE4EC5 #DC7ED5

Accessibility & contrast

On white

5.53
#AF30A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#AF30A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF30A6
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF30A6#FFFFFF#000000##FFFFFF
##AF30A61.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255DA9
Deuteranopia (green-blind)
#576FA3
Tritanopia (blue-blind)
#B63F68
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af30a6;
/* rgb */ color: rgb(175, 48, 166);
/* oklch */ color: oklch(54.6% 0.207 331.1);
Tailwind
colors: {
  custom: {
    50: '#cb75c1',
    500: '#af30a6',
    950: '#000000',
  },
}
SCSS
$custom: #af30a6;
$custom-light: #cb75c1;
$custom-dark: #000000;
JSON
{
  "hex": "#af30a6",
  "rgb": {
    "r": 175,
    "g": 48,
    "b": 166
  },
  "hsl": {
    "h": 304.252,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.5463,
    "c": 0.2067,
    "h": 331.1
  },
  "luminance": 0.13981
}

Semantic roles & 50–950 ramp

primary
#AF30A6
secondary
#76C47C
accent
#E05248
background
#FCF7FB
surface
#F9EEF7
border
#D2C9D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF30A6

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

Preview Lab → · Contrast checker → · Palette generator →

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