#AF1C8B#AF1C8B

#AF1C8B is a mid, highly saturated pink. Relative luminance 0.118; OKLCH L 51.8% C 0.207 H 340.8°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#AF1C8B
RGBrgb(175, 28, 139)
HSLhsl(315, 72%, 40%)
HSVhsv(315, 84%, 69%)
CMYKcmyk(0%, 84%, 20.6%, 31.4%)
CIE-LABlab(40.91, 65.15, -25.16)
CIE-LCHlch(40.91, 69.84, 338.89°)
OKLaboklab(51.83% 0.1955 -0.0679)
OKLCHoklch(51.83% 0.207 340.8)
XYZxyz(22.7554, 11.8110, 25.5025)
Luminance0.1181 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF1C8B #1CAF40
analogous
#8A1CAF #AF1C8B #AF1C41
triadic
#AF1C8B #8BAF1C #1C8BAF
tetradic
#AF1C8B #AF8A1C #1CAF40 #1C41AF
square
#AF1C8B #AF8A1C #1CAF40 #1C41AF
split-complementary
#AF1C8B #41AF1C #1CAF8A
monochromatic
#450B37 #7A1461 #AF1C8B #DD2BB2 #E660C5

Accessibility & contrast

On white

6.25
#AF1C8B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#AF1C8B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF1C8B
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF1C8B#FFFFFF#000000##FFFFFF
##AF1C8B1.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B528E
Deuteranopia (green-blind)
#5D6988
Tritanopia (blue-blind)
#BA2154
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af1c8b;
/* rgb */ color: rgb(175, 28, 139);
/* oklch */ color: oklch(51.8% 0.207 340.8);
Tailwind
colors: {
  custom: {
    50: '#cb6dad',
    500: '#af1c8b',
    950: '#000000',
  },
}
SCSS
$custom: #af1c8b;
$custom-light: #cb6dad;
$custom-dark: #000000;
JSON
{
  "hex": "#af1c8b",
  "rgb": {
    "r": 175,
    "g": 28,
    "b": 139
  },
  "hsl": {
    "h": 314.694,
    "s": 72.414,
    "l": 39.804
  },
  "oklch": {
    "l": 0.51826,
    "c": 0.20698,
    "h": 340.8
  },
  "luminance": 0.11809
}

Semantic roles & 50–950 ramp

primary
#AF1C8B
secondary
#5DCA78
accent
#EF6539
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140810
muted
#837B7F

Preview Lab

Preview with #AF1C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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