#AF309B#AF309B

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

Color values

HEX#AF309B
RGBrgb(175, 48, 155)
HSLhsl(309, 57%, 44%)
HSVhsv(309, 73%, 69%)
CMYKcmyk(0%, 72.6%, 11.4%, 31.4%)
CIE-LABlab(43.65, 61.76, -30.58)
CIE-LCHlch(43.65, 68.92, 333.66°)
OKLaboklab(54.05% 0.1802 -0.0835)
OKLCHoklch(54.05% 0.199 335.1)
XYZxyz(24.6528, 13.5966, 32.3300)
Luminance0.1359 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF309B #30AF44
analogous
#8330AF #AF309B #AF305B
triadic
#AF309B #9BAF30 #309BAF
tetradic
#AF309B #AF8330 #30AF44 #305BAF
square
#AF309B #AF8330 #30AF44 #305BAF
split-complementary
#AF309B #5BAF30 #30AF83
monochromatic
#4F1646 #7F2370 #AF309B #CE4EBA #DC7ECD

Accessibility & contrast

On white

5.65
#AF309B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#AF309B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF309B
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF309B#FFFFFF#000000##FFFFFF
##AF309B1.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305B9E
Deuteranopia (green-blind)
#5C6E98
Tritanopia (blue-blind)
#B83A62
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af309b;
/* rgb */ color: rgb(175, 48, 155);
/* oklch */ color: oklch(54.0% 0.199 335.1);
Tailwind
colors: {
  custom: {
    50: '#cb75b9',
    500: '#af309b',
    950: '#000000',
  },
}
SCSS
$custom: #af309b;
$custom-light: #cb75b9;
$custom-dark: #000000;
JSON
{
  "hex": "#af309b",
  "rgb": {
    "r": 175,
    "g": 48,
    "b": 155
  },
  "hsl": {
    "h": 309.449,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.54045,
    "c": 0.19864,
    "h": 335.1
  },
  "luminance": 0.13594
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF309B

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

Preview Lab → · Contrast checker → · Palette generator →

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