#AF1F8E#AF1F8E

#AF1F8E is a mid, highly saturated pink. Relative luminance 0.120; OKLCH L 52.1% C 0.207 H 339.8°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#AF1F8E
RGBrgb(175, 31, 142)
HSLhsl(314, 70%, 40%)
HSVhsv(314, 82%, 69%)
CMYKcmyk(0%, 82.3%, 18.9%, 31.4%)
CIE-LABlab(41.29, 64.86, -26.40)
CIE-LCHlch(41.29, 70.02, 337.85°)
OKLaboklab(52.15% 0.1938 -0.0714)
OKLCHoklch(52.15% 0.207 339.8)
XYZxyz(23.0524, 12.0493, 26.6977)
Luminance0.1205 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF1F8E #1FAF40
analogous
#881FAF #AF1F8E #AF1F46
triadic
#AF1F8E #8EAF1F #1F8EAF
tetradic
#AF1F8E #AF881F #1FAF40 #1F46AF
square
#AF1F8E #AF881F #1FAF40 #1F46AF
split-complementary
#AF1F8E #46AF1F #1FAF88
monochromatic
#470D3A #7B1664 #AF1F8E #DA31B4 #E465C7

Accessibility & contrast

On white

6.16
#AF1F8E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#AF1F8E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF1F8E
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF1F8E#FFFFFF#000000##FFFFFF
##AF1F8E1.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5391
Deuteranopia (green-blind)
#5C698B
Tritanopia (blue-blind)
#BA2656
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #af1f8e;
/* rgb */ color: rgb(175, 31, 142);
/* oklch */ color: oklch(52.1% 0.207 339.8);
Tailwind
colors: {
  custom: {
    50: '#cb6eaf',
    500: '#af1f8e',
    950: '#000000',
  },
}
SCSS
$custom: #af1f8e;
$custom-light: #cb6eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#af1f8e",
  "rgb": {
    "r": 175,
    "g": 31,
    "b": 142
  },
  "hsl": {
    "h": 313.75,
    "s": 69.903,
    "l": 40.392
  },
  "oklch": {
    "l": 0.52145,
    "c": 0.20651,
    "h": 339.8
  },
  "luminance": 0.12047
}

Semantic roles & 50–950 ramp

primary
#AF1F8E
secondary
#61C979
accent
#ED643B
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140810
muted
#837B7F

Preview Lab

Preview with #AF1F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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