#AF309D#AF309D

#AF309D is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.1% C 0.200 H 334.4°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#AF309D
RGBrgb(175, 48, 157)
HSLhsl(309, 57%, 44%)
HSVhsv(309, 73%, 69%)
CMYKcmyk(0%, 72.6%, 10.3%, 31.4%)
CIE-LABlab(43.75, 62.07, -31.63)
CIE-LCHlch(43.75, 69.66, 333.00°)
OKLaboklab(54.15% 0.1804 -0.0865)
OKLCHoklch(54.15% 0.2 334.4)
XYZxyz(24.8222, 13.6643, 33.2219)
Luminance0.1366 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF309D #30AF42
analogous
#8130AF #AF309D #AF305D
triadic
#AF309D #9DAF30 #309DAF
tetradic
#AF309D #AF8130 #30AF42 #305DAF
square
#AF309D #AF8130 #30AF42 #305DAF
split-complementary
#AF309D #5DAF30 #30AF81
monochromatic
#4F1647 #7F2372 #AF309D #CE4EBC #DC7ECE

Accessibility & contrast

On white

5.63
#AF309D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#AF309D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF309D
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF309D#FFFFFF#000000##FFFFFF
##AF309D1.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5BA0
Deuteranopia (green-blind)
#5C6E9A
Tritanopia (blue-blind)
#B73B63
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af309d;
/* rgb */ color: rgb(175, 48, 157);
/* oklch */ color: oklch(54.1% 0.200 334.4);
Tailwind
colors: {
  custom: {
    50: '#cb75ba',
    500: '#af309d',
    950: '#000000',
  },
}
SCSS
$custom: #af309d;
$custom-light: #cb75ba;
$custom-dark: #000000;
JSON
{
  "hex": "#af309d",
  "rgb": {
    "r": 175,
    "g": 48,
    "b": 157
  },
  "hsl": {
    "h": 308.504,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.54149,
    "c": 0.20008,
    "h": 334.4
  },
  "luminance": 0.13662
}

Semantic roles & 50–950 ramp

primary
#AF309D
secondary
#76C482
accent
#E05D48
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF309D

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

Preview Lab → · Contrast checker → · Palette generator →

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