#AF309E#AF309E

#AF309E is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.2% C 0.201 H 334.0°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#AF309E
RGBrgb(175, 48, 158)
HSLhsl(308, 57%, 44%)
HSVhsv(308, 73%, 69%)
CMYKcmyk(0%, 72.6%, 9.7%, 31.4%)
CIE-LABlab(43.80, 62.22, -32.15)
CIE-LCHlch(43.80, 70.03, 332.67°)
OKLaboklab(54.2% 0.1805 -0.088)
OKLCHoklch(54.2% 0.201 334)
XYZxyz(24.9079, 13.6986, 33.6734)
Luminance0.1370 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF309E #30AF41
analogous
#8030AF #AF309E #AF305E
triadic
#AF309E #9EAF30 #309EAF
tetradic
#AF309E #AF8030 #30AF41 #305EAF
square
#AF309E #AF8030 #30AF41 #305EAF
split-complementary
#AF309E #5EAF30 #30AF80
monochromatic
#4F1647 #7F2373 #AF309E #CE4EBD #DC7ECF

Accessibility & contrast

On white

5.62
#AF309E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#AF309E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF309E
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF309E#FFFFFF#000000##FFFFFF
##AF309E1.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5CA1
Deuteranopia (green-blind)
#5B6E9B
Tritanopia (blue-blind)
#B73B64
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af309e;
/* rgb */ color: rgb(175, 48, 158);
/* oklch */ color: oklch(54.2% 0.201 334.0);
Tailwind
colors: {
  custom: {
    50: '#cb75bb',
    500: '#af309e',
    950: '#000000',
  },
}
SCSS
$custom: #af309e;
$custom-light: #cb75bb;
$custom-dark: #000000;
JSON
{
  "hex": "#af309e",
  "rgb": {
    "r": 175,
    "g": 48,
    "b": 158
  },
  "hsl": {
    "h": 308.031,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.54201,
    "c": 0.2008,
    "h": 334
  },
  "luminance": 0.13696
}

Semantic roles & 50–950 ramp

primary
#AF309E
secondary
#76C481
accent
#E05C48
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF309E

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

Preview Lab → · Contrast checker → · Palette generator →

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