#AF307B#AF307B

#AF307B is a mid, vivid pink. Relative luminance 0.127; OKLCH L 52.6% C 0.178 H 348.7°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#AF307B
RGBrgb(175, 48, 123)
HSLhsl(325, 57%, 44%)
HSVhsv(325, 73%, 69%)
CMYKcmyk(0%, 72.6%, 29.7%, 31.4%)
CIE-LABlab(42.25, 57.38, -13.27)
CIE-LCHlch(42.25, 58.89, 346.98°)
OKLaboklab(52.57% 0.1748 -0.0348)
OKLCHoklch(52.57% 0.178 348.7)
XYZxyz(22.3124, 12.6604, 20.0037)
Luminance0.1266 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF307B #30AF64
analogous
#A330AF #AF307B #AF303B
triadic
#AF307B #7BAF30 #307BAF
tetradic
#AF307B #AFA330 #30AF64 #303BAF
square
#AF307B #AFA330 #30AF64 #303BAF
split-complementary
#AF307B #3BAF30 #30AFA3
monochromatic
#4F1637 #7F2359 #AF307B #CE4E9A #DC7EB5

Accessibility & contrast

On white

5.95
#AF307B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#AF307B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF307B
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF307B#FFFFFF#000000##FFFFFF
##AF307B1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#43567D
Deuteranopia (green-blind)
#686C78
Tritanopia (blue-blind)
#BC2A51
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #af307b;
/* rgb */ color: rgb(175, 48, 123);
/* oklch */ color: oklch(52.6% 0.178 348.7);
Tailwind
colors: {
  custom: {
    50: '#cb74a1',
    500: '#af307b',
    950: '#000000',
  },
}
SCSS
$custom: #af307b;
$custom-light: #cb74a1;
$custom-dark: #000000;
JSON
{
  "hex": "#af307b",
  "rgb": {
    "r": 175,
    "g": 48,
    "b": 123
  },
  "hsl": {
    "h": 324.567,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.5257,
    "c": 0.17827,
    "h": 348.7
  },
  "luminance": 0.12658
}

Semantic roles & 50–950 ramp

primary
#AF307B
secondary
#76C496
accent
#E08648
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090F
muted
#837B7E

Preview Lab

Preview with #AF307B

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

Preview Lab → · Contrast checker → · Palette generator →

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