#AF277B#AF277B

#AF277B is a mid, vivid pink. Relative luminance 0.120; OKLCH L 51.8% C 0.188 H 348.0°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#AF277B
RGBrgb(175, 39, 123)
HSLhsl(323, 64%, 42%)
HSVhsv(323, 78%, 69%)
CMYKcmyk(0%, 77.7%, 29.7%, 31.4%)
CIE-LABlab(41.21, 60.30, -14.85)
CIE-LCHlch(41.21, 62.10, 346.17°)
OKLaboklab(51.82% 0.184 -0.0391)
OKLCHoklch(51.82% 0.188 348)
XYZxyz(21.9810, 11.9976, 19.8933)
Luminance0.1200 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF277B #27AF5B
analogous
#9F27AF #AF277B #AF2737
triadic
#AF277B #7BAF27 #277BAF
tetradic
#AF277B #AF9F27 #27AF5B #2737AF
square
#AF277B #AF9F27 #27AF5B #2737AF
split-complementary
#AF277B #37AF27 #27AF9F
monochromatic
#4B1135 #7D1C58 #AF277B #D43F9B #DF71B5

Accessibility & contrast

On white

6.18
#AF277B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#AF277B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF277B
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF277B#FFFFFF#000000##FFFFFF
##AF277B1.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D527D
Deuteranopia (green-blind)
#656A78
Tritanopia (blue-blind)
#BC204E
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #af277b;
/* rgb */ color: rgb(175, 39, 123);
/* oklch */ color: oklch(51.8% 0.188 348.0);
Tailwind
colors: {
  custom: {
    50: '#cb70a1',
    500: '#af277b',
    950: '#000000',
  },
}
SCSS
$custom: #af277b;
$custom-light: #cb70a1;
$custom-dark: #000000;
JSON
{
  "hex": "#af277b",
  "rgb": {
    "r": 175,
    "g": 39,
    "b": 123
  },
  "hsl": {
    "h": 322.941,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.51815,
    "c": 0.18808,
    "h": 348
  },
  "luminance": 0.11995
}

Semantic roles & 50–950 ramp

primary
#AF277B
secondary
#6BC68E
accent
#E78041
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14080F
muted
#837B7E

Preview Lab

Preview with #AF277B

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

Preview Lab → · Contrast checker → · Palette generator →

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