#AF306D#AF306D

#AF306D is a mid, vivid pink. Relative luminance 0.123; OKLCH L 52.0% C 0.172 H 355.5°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#AF306D
RGBrgb(175, 48, 109)
HSLhsl(331, 57%, 44%)
HSVhsv(331, 73%, 69%)
CMYKcmyk(0%, 72.6%, 37.7%, 31.4%)
CIE-LABlab(41.74, 55.75, -5.35)
CIE-LCHlch(41.74, 56.01, 354.52°)
OKLaboklab(52.04% 0.171 -0.0134)
OKLCHoklch(52.04% 0.172 355.5)
XYZxyz(21.4979, 12.3346, 15.7138)
Luminance0.1233 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF306D #30AF72
analogous
#AF30AC #AF306D #AF3230
triadic
#AF306D #6DAF30 #306DAF
tetradic
#AF306D #ACAF30 #30AF72 #3230AF
square
#AF306D #ACAF30 #30AF72 #3230AF
split-complementary
#AF306D #30AF32 #30ACAF
monochromatic
#4F1631 #7F234F #AF306D #CE4E8C #DC7EAB

Accessibility & contrast

On white

6.06
#AF306D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#AF306D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF306D
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF306D#FFFFFF#000000##FFFFFF
##AF306D1.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#48536F
Deuteranopia (green-blind)
#6B6B6A
Tritanopia (blue-blind)
#BD234A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #af306d;
/* rgb */ color: rgb(175, 48, 109);
/* oklch */ color: oklch(52.0% 0.172 355.5);
Tailwind
colors: {
  custom: {
    50: '#cc7396',
    500: '#af306d',
    950: '#000000',
  },
}
SCSS
$custom: #af306d;
$custom-light: #cc7396;
$custom-dark: #000000;
JSON
{
  "hex": "#af306d",
  "rgb": {
    "r": 175,
    "g": 48,
    "b": 109
  },
  "hsl": {
    "h": 331.181,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.52035,
    "c": 0.1715,
    "h": 355.5
  },
  "luminance": 0.12332
}

Semantic roles & 50–950 ramp

primary
#AF306D
secondary
#76C49F
accent
#E09748
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090D
muted
#837B7E

Preview Lab

Preview with #AF306D

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

Preview Lab → · Contrast checker → · Palette generator →

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