#AF309F#AF309F

#AF309F is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.3% C 0.202 H 333.6°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#AF309F
RGBrgb(175, 48, 159)
HSLhsl(308, 57%, 44%)
HSVhsv(308, 73%, 69%)
CMYKcmyk(0%, 72.6%, 9.1%, 31.4%)
CIE-LABlab(43.85, 62.37, -32.67)
CIE-LCHlch(43.85, 70.41, 332.35°)
OKLaboklab(54.25% 0.1805 -0.0895)
OKLCHoklch(54.25% 0.202 333.6)
XYZxyz(24.9943, 13.7332, 34.1285)
Luminance0.1373 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF309F #30AF40
analogous
#7F30AF #AF309F #AF305F
triadic
#AF309F #9FAF30 #309FAF
tetradic
#AF309F #AF7F30 #30AF40 #305FAF
square
#AF309F #AF7F30 #30AF40 #305FAF
split-complementary
#AF309F #5FAF30 #30AF7F
monochromatic
#4F1648 #7F2373 #AF309F #CE4EBE #DC7ED0

Accessibility & contrast

On white

5.61
#AF309F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#AF309F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF309F
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF309F#FFFFFF#000000##FFFFFF
##AF309F1.005.613.755.61
#FFFFFF5.611.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5CA2
Deuteranopia (green-blind)
#5B6E9C
Tritanopia (blue-blind)
#B73C64
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af309f;
/* rgb */ color: rgb(175, 48, 159);
/* oklch */ color: oklch(54.3% 0.202 333.6);
Tailwind
colors: {
  custom: {
    50: '#cb75bc',
    500: '#af309f',
    950: '#000000',
  },
}
SCSS
$custom: #af309f;
$custom-light: #cb75bc;
$custom-dark: #000000;
JSON
{
  "hex": "#af309f",
  "rgb": {
    "r": 175,
    "g": 48,
    "b": 159
  },
  "hsl": {
    "h": 307.559,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.54253,
    "c": 0.20152,
    "h": 333.6
  },
  "luminance": 0.13731
}

Semantic roles & 50–950 ramp

primary
#AF309F
secondary
#76C480
accent
#E05B48
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF309F

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

Preview Lab → · Contrast checker → · Palette generator →

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