#AF306E#AF306E

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

Color values

HEX#AF306E
RGBrgb(175, 48, 110)
HSLhsl(331, 57%, 44%)
HSVhsv(331, 73%, 69%)
CMYKcmyk(0%, 72.6%, 37.1%, 31.4%)
CIE-LABlab(41.78, 55.86, -5.92)
CIE-LCHlch(41.78, 56.17, 353.95°)
OKLaboklab(52.07% 0.1713 -0.0149)
OKLCHoklch(52.07% 0.172 355)
XYZxyz(21.5520, 12.3562, 15.9989)
Luminance0.1235 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF306E #30AF71
analogous
#AF30AD #AF306E #AF3130
triadic
#AF306E #6EAF30 #306EAF
tetradic
#AF306E #ADAF30 #30AF71 #3130AF
square
#AF306E #ADAF30 #30AF71 #3130AF
split-complementary
#AF306E #30AF31 #30ADAF
monochromatic
#4F1632 #7F2350 #AF306E #CE4E8D #DC7EAC

Accessibility & contrast

On white

6.05
#AF306E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF306E
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF306E#FFFFFF#000000##FFFFFF
##AF306E1.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#485470
Deuteranopia (green-blind)
#6B6B6B
Tritanopia (blue-blind)
#BD234B
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af306e;
/* rgb */ color: rgb(175, 48, 110);
/* oklch */ color: oklch(52.1% 0.172 355.0);
Tailwind
colors: {
  custom: {
    50: '#cb7397',
    500: '#af306e',
    950: '#000000',
  },
}
SCSS
$custom: #af306e;
$custom-light: #cb7397;
$custom-dark: #000000;
JSON
{
  "hex": "#af306e",
  "rgb": {
    "r": 175,
    "g": 48,
    "b": 110
  },
  "hsl": {
    "h": 330.709,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.52071,
    "c": 0.17193,
    "h": 355
  },
  "luminance": 0.12354
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF306E

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

Preview Lab → · Contrast checker → · Palette generator →

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