#AF307D#AF307D

#AF307D is a mid, vivid pink. Relative luminance 0.127; OKLCH L 52.7% C 0.179 H 347.8°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#AF307D
RGBrgb(175, 48, 125)
HSLhsl(324, 57%, 44%)
HSVhsv(324, 73%, 69%)
CMYKcmyk(0%, 72.6%, 28.6%, 31.4%)
CIE-LABlab(42.32, 57.62, -14.39)
CIE-LCHlch(42.32, 59.39, 345.98°)
OKLaboklab(52.65% 0.1753 -0.0379)
OKLCHoklch(52.65% 0.179 347.8)
XYZxyz(22.4389, 12.7110, 20.6698)
Luminance0.1271 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF307D #30AF62
analogous
#A130AF #AF307D #AF303D
triadic
#AF307D #7DAF30 #307DAF
tetradic
#AF307D #AFA130 #30AF62 #303DAF
square
#AF307D #AFA130 #30AF62 #303DAF
split-complementary
#AF307D #3DAF30 #30AFA1
monochromatic
#4F1638 #7F235B #AF307D #CE4E9C #DC7EB7

Accessibility & contrast

On white

5.93
#AF307D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#AF307D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF307D
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF307D#FFFFFF#000000##FFFFFF
##AF307D1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#42567F
Deuteranopia (green-blind)
#676C7A
Tritanopia (blue-blind)
#BB2B52
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #af307d;
/* rgb */ color: rgb(175, 48, 125);
/* oklch */ color: oklch(52.7% 0.179 347.8);
Tailwind
colors: {
  custom: {
    50: '#cb74a2',
    500: '#af307d',
    950: '#000000',
  },
}
SCSS
$custom: #af307d;
$custom-light: #cb74a2;
$custom-dark: #000000;
JSON
{
  "hex": "#af307d",
  "rgb": {
    "r": 175,
    "g": 48,
    "b": 125
  },
  "hsl": {
    "h": 323.622,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.52652,
    "c": 0.17937,
    "h": 347.8
  },
  "luminance": 0.12709
}

Semantic roles & 50–950 ramp

primary
#AF307D
secondary
#76C495
accent
#E08448
background
#FDF7FA
surface
#FAEDF3
border
#D3C8CD
text
#14090F
muted
#837B7F

Preview Lab

Preview with #AF307D

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

Preview Lab → · Contrast checker → · Palette generator →

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