#AF306A#AF306A

#AF306A is a mid, vivid pink. Relative luminance 0.123; OKLCH L 51.9% C 0.170 H 357.0°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#AF306A
RGBrgb(175, 48, 106)
HSLhsl(333, 57%, 44%)
HSVhsv(333, 73%, 69%)
CMYKcmyk(0%, 72.6%, 39.4%, 31.4%)
CIE-LABlab(41.64, 55.43, -3.63)
CIE-LCHlch(41.64, 55.54, 356.26°)
OKLaboklab(51.93% 0.17 -0.0088)
OKLCHoklch(51.93% 0.17 357)
XYZxyz(21.3391, 12.2711, 14.8777)
Luminance0.1227 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF306A #30AF75
analogous
#AF30A9 #AF306A #AF3530
triadic
#AF306A #6AAF30 #306AAF
tetradic
#AF306A #A9AF30 #30AF75 #3530AF
square
#AF306A #A9AF30 #30AF75 #3530AF
split-complementary
#AF306A #30AF35 #30A9AF
monochromatic
#4F1630 #7F234D #AF306A #CE4E89 #DC7EA9

Accessibility & contrast

On white

6.08
#AF306A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#AF306A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF306A
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF306A#FFFFFF#000000##FFFFFF
##AF306A1.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#49536C
Deuteranopia (green-blind)
#6C6B67
Tritanopia (blue-blind)
#BD2149
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #af306a;
/* rgb */ color: rgb(175, 48, 106);
/* oklch */ color: oklch(51.9% 0.170 357.0);
Tailwind
colors: {
  custom: {
    50: '#cc7394',
    500: '#af306a',
    950: '#000000',
  },
}
SCSS
$custom: #af306a;
$custom-light: #cc7394;
$custom-dark: #000000;
JSON
{
  "hex": "#af306a",
  "rgb": {
    "r": 175,
    "g": 48,
    "b": 106
  },
  "hsl": {
    "h": 332.598,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.5193,
    "c": 0.17027,
    "h": 357
  },
  "luminance": 0.12268
}

Semantic roles & 50–950 ramp

primary
#AF306A
secondary
#76C4A1
accent
#E09B48
background
#FDF7F9
surface
#FAEDF1
border
#D3C8CB
text
#14090D
muted
#837B7E

Preview Lab

Preview with #AF306A

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

Preview Lab → · Contrast checker → · Palette generator →

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