#AF306F#AF306F

#AF306F is a mid, vivid pink. Relative luminance 0.124; OKLCH L 52.1% C 0.172 H 354.5°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#AF306F
RGBrgb(175, 48, 111)
HSLhsl(330, 57%, 44%)
HSVhsv(330, 73%, 69%)
CMYKcmyk(0%, 72.6%, 36.6%, 31.4%)
CIE-LABlab(41.81, 55.97, -6.49)
CIE-LCHlch(41.81, 56.35, 353.38°)
OKLaboklab(52.11% 0.1716 -0.0164)
OKLCHoklch(52.11% 0.172 354.5)
XYZxyz(21.6067, 12.3781, 16.2872)
Luminance0.1238 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF306F #30AF70
analogous
#AF30AE #AF306F #AF3030
triadic
#AF306F #6FAF30 #306FAF
tetradic
#AF306F #AEAF30 #30AF70 #3030AF
square
#AF306F #AEAF30 #30AF70 #3030AF
split-complementary
#AF306F #30AF30 #30AEAF
monochromatic
#4F1632 #7F2351 #AF306F #CE4E8E #DC7EAC

Accessibility & contrast

On white

6.04
#AF306F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#AF306F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF306F
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF306F#FFFFFF#000000##FFFFFF
##AF306F1.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#475471
Deuteranopia (green-blind)
#6B6B6C
Tritanopia (blue-blind)
#BD244B
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af306f;
/* rgb */ color: rgb(175, 48, 111);
/* oklch */ color: oklch(52.1% 0.172 354.5);
Tailwind
colors: {
  custom: {
    50: '#cb7398',
    500: '#af306f',
    950: '#000000',
  },
}
SCSS
$custom: #af306f;
$custom-light: #cb7398;
$custom-dark: #000000;
JSON
{
  "hex": "#af306f",
  "rgb": {
    "r": 175,
    "g": 48,
    "b": 111
  },
  "hsl": {
    "h": 330.236,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.52107,
    "c": 0.17237,
    "h": 354.5
  },
  "luminance": 0.12376
}

Semantic roles & 50–950 ramp

primary
#AF306F
secondary
#76C49E
accent
#E09548
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090D
muted
#837B7E

Preview Lab

Preview with #AF306F

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

Preview Lab → · Contrast checker → · Palette generator →

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