#AF309A#AF309A

#AF309A is a mid, vivid purple. Relative luminance 0.136; OKLCH L 54.0% C 0.198 H 335.5°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#AF309A
RGBrgb(175, 48, 154)
HSLhsl(310, 57%, 44%)
HSVhsv(310, 73%, 69%)
CMYKcmyk(0%, 72.6%, 12%, 31.4%)
CIE-LABlab(43.60, 61.61, -30.06)
CIE-LCHlch(43.60, 68.56, 333.99°)
OKLaboklab(53.99% 0.1801 -0.082)
OKLCHoklch(53.99% 0.198 335.5)
XYZxyz(24.5692, 13.5631, 31.8896)
Luminance0.1356 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF309A #30AF45
analogous
#8430AF #AF309A #AF305A
triadic
#AF309A #9AAF30 #309AAF
tetradic
#AF309A #AF8430 #30AF45 #305AAF
square
#AF309A #AF8430 #30AF45 #305AAF
split-complementary
#AF309A #5AAF30 #30AF84
monochromatic
#4F1645 #7F2370 #AF309A #CE4EB9 #DC7ECC

Accessibility & contrast

On white

5.66
#AF309A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#AF309A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF309A
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF309A#FFFFFF#000000##FFFFFF
##AF309A1.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315B9D
Deuteranopia (green-blind)
#5D6E97
Tritanopia (blue-blind)
#B83961
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af309a;
/* rgb */ color: rgb(175, 48, 154);
/* oklch */ color: oklch(54.0% 0.198 335.5);
Tailwind
colors: {
  custom: {
    50: '#cb75b8',
    500: '#af309a',
    950: '#000000',
  },
}
SCSS
$custom: #af309a;
$custom-light: #cb75b8;
$custom-dark: #000000;
JSON
{
  "hex": "#af309a",
  "rgb": {
    "r": 175,
    "g": 48,
    "b": 154
  },
  "hsl": {
    "h": 309.921,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.53994,
    "c": 0.19793,
    "h": 335.5
  },
  "luminance": 0.13561
}

Semantic roles & 50–950 ramp

primary
#AF309A
secondary
#76C483
accent
#E06148
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF309A

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

Preview Lab → · Contrast checker → · Palette generator →

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