#AF1F8C#AF1F8C

#AF1F8C is a mid, highly saturated pink. Relative luminance 0.120; OKLCH L 52.0% C 0.205 H 340.5°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#AF1F8C
RGBrgb(175, 31, 140)
HSLhsl(315, 70%, 40%)
HSVhsv(315, 82%, 69%)
CMYKcmyk(0%, 82.3%, 20%, 31.4%)
CIE-LABlab(41.20, 64.59, -25.32)
CIE-LCHlch(41.20, 69.38, 338.59°)
OKLaboklab(52.05% 0.1935 -0.0684)
OKLCHoklch(52.05% 0.205 340.5)
XYZxyz(22.9036, 11.9898, 25.9139)
Luminance0.1199 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF1F8C #1FAF42
analogous
#8A1FAF #AF1F8C #AF1F44
triadic
#AF1F8C #8CAF1F #1F8CAF
tetradic
#AF1F8C #AF8A1F #1FAF42 #1F44AF
square
#AF1F8C #AF8A1F #1FAF42 #1F44AF
split-complementary
#AF1F8C #44AF1F #1FAF8A
monochromatic
#470D39 #7B1662 #AF1F8C #DA31B1 #E465C5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF1F8C#FFFFFF#000000##FFFFFF
##AF1F8C1.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)
#2D538F
Deuteranopia (green-blind)
#5D6989
Tritanopia (blue-blind)
#BA2455
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #af1f8c;
/* rgb */ color: rgb(175, 31, 140);
/* oklch */ color: oklch(52.0% 0.205 340.5);
Tailwind
colors: {
  custom: {
    50: '#cb6eae',
    500: '#af1f8c',
    950: '#000000',
  },
}
SCSS
$custom: #af1f8c;
$custom-light: #cb6eae;
$custom-dark: #000000;
JSON
{
  "hex": "#af1f8c",
  "rgb": {
    "r": 175,
    "g": 31,
    "b": 140
  },
  "hsl": {
    "h": 314.583,
    "s": 69.903,
    "l": 40.392
  },
  "oklch": {
    "l": 0.52047,
    "c": 0.20526,
    "h": 340.5
  },
  "luminance": 0.11987
}

Semantic roles & 50–950 ramp

primary
#AF1F8C
secondary
#61C97A
accent
#ED663B
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140810
muted
#837B7F

Preview Lab

Preview with #AF1F8C

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

Preview Lab → · Contrast checker → · Palette generator →

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