#AF308A#AF308A

#AF308A is a mid, vivid pink. Relative luminance 0.131; OKLCH L 53.2% C 0.187 H 342.0°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#AF308A
RGBrgb(175, 48, 138)
HSLhsl(317, 57%, 44%)
HSVhsv(317, 73%, 69%)
CMYKcmyk(0%, 72.6%, 21.1%, 31.4%)
CIE-LABlab(42.86, 59.32, -21.52)
CIE-LCHlch(42.86, 63.11, 340.06°)
OKLaboklab(53.22% 0.178 -0.0578)
OKLCHoklch(53.22% 0.187 342)
XYZxyz(23.3244, 13.0652, 25.3333)
Luminance0.1306 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF308A #30AF55
analogous
#9430AF #AF308A #AF304A
triadic
#AF308A #8AAF30 #308AAF
tetradic
#AF308A #AF9430 #30AF55 #304AAF
square
#AF308A #AF9430 #30AF55 #304AAF
split-complementary
#AF308A #4AAF30 #30AF94
monochromatic
#4F163E #7F2364 #AF308A #CE4EA9 #DC7EC0

Accessibility & contrast

On white

5.81
#AF308A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#AF308A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF308A
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF308A#FFFFFF#000000##FFFFFF
##AF308A1.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B588C
Deuteranopia (green-blind)
#636D87
Tritanopia (blue-blind)
#BA3259
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af308a;
/* rgb */ color: rgb(175, 48, 138);
/* oklch */ color: oklch(53.2% 0.187 342.0);
Tailwind
colors: {
  custom: {
    50: '#cb74ac',
    500: '#af308a',
    950: '#000000',
  },
}
SCSS
$custom: #af308a;
$custom-light: #cb74ac;
$custom-dark: #000000;
JSON
{
  "hex": "#af308a",
  "rgb": {
    "r": 175,
    "g": 48,
    "b": 138
  },
  "hsl": {
    "h": 317.48,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.53218,
    "c": 0.18712,
    "h": 342
  },
  "luminance": 0.13063
}

Semantic roles & 50–950 ramp

primary
#AF308A
secondary
#76C48D
accent
#E07448
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AF308A

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

Preview Lab → · Contrast checker → · Palette generator →

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