#AF307F#AF307F

#AF307F is a mid, vivid pink. Relative luminance 0.128; OKLCH L 52.7% C 0.180 H 346.9°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#AF307F
RGBrgb(175, 48, 127)
HSLhsl(323, 57%, 44%)
HSVhsv(323, 73%, 69%)
CMYKcmyk(0%, 72.6%, 27.4%, 31.4%)
CIE-LABlab(42.40, 57.88, -15.50)
CIE-LCHlch(42.40, 59.91, 345.01°)
OKLaboklab(52.74% 0.1758 -0.0409)
OKLCHoklch(52.74% 0.18 346.9)
XYZxyz(22.5679, 12.7626, 21.3495)
Luminance0.1276 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF307F #30AF60
analogous
#9F30AF #AF307F #AF303F
triadic
#AF307F #7FAF30 #307FAF
tetradic
#AF307F #AF9F30 #30AF60 #303FAF
square
#AF307F #AF9F30 #30AF60 #303FAF
split-complementary
#AF307F #3FAF30 #30AF9F
monochromatic
#4F1639 #7F235C #AF307F #CE4E9E #DC7EB8

Accessibility & contrast

On white

5.91
#AF307F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#AF307F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF307F
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF307F#FFFFFF#000000##FFFFFF
##AF307F1.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#415681
Deuteranopia (green-blind)
#676C7C
Tritanopia (blue-blind)
#BB2C53
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #af307f;
/* rgb */ color: rgb(175, 48, 127);
/* oklch */ color: oklch(52.7% 0.180 346.9);
Tailwind
colors: {
  custom: {
    50: '#cb74a4',
    500: '#af307f',
    950: '#000000',
  },
}
SCSS
$custom: #af307f;
$custom-light: #cb74a4;
$custom-dark: #000000;
JSON
{
  "hex": "#af307f",
  "rgb": {
    "r": 175,
    "g": 48,
    "b": 127
  },
  "hsl": {
    "h": 322.677,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.52735,
    "c": 0.18048,
    "h": 346.9
  },
  "luminance": 0.1276
}

Semantic roles & 50–950 ramp

primary
#AF307F
secondary
#76C494
accent
#E08148
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#14090F
muted
#837B7F

Preview Lab

Preview with #AF307F

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

Preview Lab → · Contrast checker → · Palette generator →

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