#AF30A8#AF30A8

#AF30A8 is a mid, highly saturated purple. Relative luminance 0.141; OKLCH L 54.7% C 0.208 H 330.4°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#AF30A8
RGBrgb(175, 48, 168)
HSLhsl(303, 57%, 44%)
HSVhsv(303, 73%, 69%)
CMYKcmyk(0%, 72.6%, 4%, 31.4%)
CIE-LABlab(44.31, 63.78, -37.30)
CIE-LCHlch(44.31, 73.89, 329.68°)
OKLaboklab(54.74% 0.181 -0.1029)
OKLCHoklch(54.74% 0.208 330.4)
XYZxyz(25.8039, 14.0570, 38.3924)
Luminance0.1406 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF30A8 #30AF37
analogous
#7630AF #AF30A8 #AF3068
triadic
#AF30A8 #A8AF30 #30A8AF
tetradic
#AF30A8 #AF7630 #30AF37 #3068AF
square
#AF30A8 #AF7630 #30AF37 #3068AF
split-complementary
#AF30A8 #68AF30 #30AF76
monochromatic
#4F164C #7F237A #AF30A8 #CE4EC7 #DC7ED6

Accessibility & contrast

On white

5.51
#AF30A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#AF30A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF30A8
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF30A8#FFFFFF#000000##FFFFFF
##AF30A81.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225EAB
Deuteranopia (green-blind)
#566FA5
Tritanopia (blue-blind)
#B64069
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #af30a8;
/* rgb */ color: rgb(175, 48, 168);
/* oklch */ color: oklch(54.7% 0.208 330.4);
Tailwind
colors: {
  custom: {
    50: '#cb75c2',
    500: '#af30a8',
    950: '#000000',
  },
}
SCSS
$custom: #af30a8;
$custom-light: #cb75c2;
$custom-dark: #000000;
JSON
{
  "hex": "#af30a8",
  "rgb": {
    "r": 175,
    "g": 48,
    "b": 168
  },
  "hsl": {
    "h": 303.307,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.5474,
    "c": 0.20821,
    "h": 330.4
  },
  "luminance": 0.14055
}

Semantic roles & 50–950 ramp

primary
#AF30A8
secondary
#76C47B
accent
#E05048
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140912
muted
#827B81

Preview Lab

Preview with #AF30A8

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

Preview Lab → · Contrast checker → · Palette generator →

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