#AF30A2#AF30A2

#AF30A2 is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.4% C 0.204 H 332.5°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#AF30A2
RGBrgb(175, 48, 162)
HSLhsl(306, 57%, 44%)
HSVhsv(306, 73%, 69%)
CMYKcmyk(0%, 72.6%, 7.4%, 31.4%)
CIE-LABlab(44.00, 62.83, -34.22)
CIE-LCHlch(44.00, 71.55, 331.42°)
OKLaboklab(54.41% 0.1808 -0.094)
OKLCHoklch(54.41% 0.204 332.5)
XYZxyz(25.2578, 13.8386, 35.5163)
Luminance0.1384 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF30A2 #30AF3D
analogous
#7C30AF #AF30A2 #AF3062
triadic
#AF30A2 #A2AF30 #30A2AF
tetradic
#AF30A2 #AF7C30 #30AF3D #3062AF
square
#AF30A2 #AF7C30 #30AF3D #3062AF
split-complementary
#AF30A2 #62AF30 #30AF7C
monochromatic
#4F1649 #7F2376 #AF30A2 #CE4EC1 #DC7ED2

Accessibility & contrast

On white

5.57
#AF30A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#AF30A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF30A2
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF30A2#FFFFFF#000000##FFFFFF
##AF30A21.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295CA5
Deuteranopia (green-blind)
#596E9F
Tritanopia (blue-blind)
#B73D66
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af30a2;
/* rgb */ color: rgb(175, 48, 162);
/* oklch */ color: oklch(54.4% 0.204 332.5);
Tailwind
colors: {
  custom: {
    50: '#cb75be',
    500: '#af30a2',
    950: '#000000',
  },
}
SCSS
$custom: #af30a2;
$custom-light: #cb75be;
$custom-dark: #000000;
JSON
{
  "hex": "#af30a2",
  "rgb": {
    "r": 175,
    "g": 48,
    "b": 162
  },
  "hsl": {
    "h": 306.142,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.54413,
    "c": 0.20373,
    "h": 332.5
  },
  "luminance": 0.13836
}

Semantic roles & 50–950 ramp

primary
#AF30A2
secondary
#76C47E
accent
#E05748
background
#FCF7FB
surface
#F9EEF7
border
#D2C9D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF30A2

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

Preview Lab → · Contrast checker → · Palette generator →

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