#AF309C#AF309C

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

Color values

HEX#AF309C
RGBrgb(175, 48, 156)
HSLhsl(309, 57%, 44%)
HSVhsv(309, 73%, 69%)
CMYKcmyk(0%, 72.6%, 10.9%, 31.4%)
CIE-LABlab(43.70, 61.91, -31.11)
CIE-LCHlch(43.70, 69.29, 333.32°)
OKLaboklab(54.1% 0.1803 -0.085)
OKLCHoklch(54.1% 0.199 334.8)
XYZxyz(24.7372, 13.6303, 32.7741)
Luminance0.1363 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF309C #30AF43
analogous
#8230AF #AF309C #AF305C
triadic
#AF309C #9CAF30 #309CAF
tetradic
#AF309C #AF8230 #30AF43 #305CAF
square
#AF309C #AF8230 #30AF43 #305CAF
split-complementary
#AF309C #5CAF30 #30AF82
monochromatic
#4F1646 #7F2371 #AF309C #CE4EBB #DC7ECE

Accessibility & contrast

On white

5.64
#AF309C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF309C
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF309C#FFFFFF#000000##FFFFFF
##AF309C1.005.643.735.64
#FFFFFF5.641.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5B9F
Deuteranopia (green-blind)
#5C6E99
Tritanopia (blue-blind)
#B83A63
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af309c;
/* rgb */ color: rgb(175, 48, 156);
/* oklch */ color: oklch(54.1% 0.199 334.8);
Tailwind
colors: {
  custom: {
    50: '#cb75b9',
    500: '#af309c',
    950: '#000000',
  },
}
SCSS
$custom: #af309c;
$custom-light: #cb75b9;
$custom-dark: #000000;
JSON
{
  "hex": "#af309c",
  "rgb": {
    "r": 175,
    "g": 48,
    "b": 156
  },
  "hsl": {
    "h": 308.976,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.54097,
    "c": 0.19935,
    "h": 334.8
  },
  "luminance": 0.13628
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF309C

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

Preview Lab → · Contrast checker → · Palette generator →

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