#AF30A7#AF30A7

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

Color values

HEX#AF30A7
RGBrgb(175, 48, 167)
HSLhsl(304, 57%, 44%)
HSVhsv(304, 73%, 69%)
CMYKcmyk(0%, 72.6%, 4.6%, 31.4%)
CIE-LABlab(44.26, 63.62, -36.79)
CIE-LCHlch(44.26, 73.49, 329.96°)
OKLaboklab(54.68% 0.181 -0.1014)
OKLCHoklch(54.68% 0.207 330.7)
XYZxyz(25.7111, 14.0199, 37.9037)
Luminance0.1402 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF30A7 #30AF38
analogous
#7730AF #AF30A7 #AF3067
triadic
#AF30A7 #A7AF30 #30A7AF
tetradic
#AF30A7 #AF7730 #30AF38 #3067AF
square
#AF30A7 #AF7730 #30AF38 #3067AF
split-complementary
#AF30A7 #67AF30 #30AF77
monochromatic
#4F164B #7F2379 #AF30A7 #CE4EC6 #DC7ED6

Accessibility & contrast

On white

5.52
#AF30A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF30A7
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF30A7#FFFFFF#000000##FFFFFF
##AF30A71.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245DAA
Deuteranopia (green-blind)
#576FA4
Tritanopia (blue-blind)
#B64069
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #af30a7;
/* rgb */ color: rgb(175, 48, 167);
/* oklch */ color: oklch(54.7% 0.207 330.7);
Tailwind
colors: {
  custom: {
    50: '#cb75c1',
    500: '#af30a7',
    950: '#000000',
  },
}
SCSS
$custom: #af30a7;
$custom-light: #cb75c1;
$custom-dark: #000000;
JSON
{
  "hex": "#af30a7",
  "rgb": {
    "r": 175,
    "g": 48,
    "b": 167
  },
  "hsl": {
    "h": 303.78,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.54685,
    "c": 0.20746,
    "h": 330.7
  },
  "luminance": 0.14018
}

Semantic roles & 50–950 ramp

primary
#AF30A7
secondary
#76C47B
accent
#E05148
background
#FCF7FB
surface
#F9EEF7
border
#D2C9D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF30A7

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

Preview Lab → · Contrast checker → · Palette generator →

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