#AF1FB3#AF1FB3

#AF1FB3 is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 54.2% C 0.232 H 326.9°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#AF1FB3
RGBrgb(175, 31, 179)
HSLhsl(298, 70%, 41%)
HSVhsv(298, 83%, 70%)
CMYKcmyk(2.2%, 82.7%, 0%, 29.8%)
CIE-LABlab(43.29, 70.29, -45.45)
CIE-LCHlch(43.29, 83.71, 327.11°)
OKLaboklab(54.21% 0.1943 -0.1265)
OKLCHoklch(54.21% 0.232 326.9)
XYZxyz(26.3054, 13.3505, 43.8305)
Luminance0.1335 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF1FB3 #23B31F
analogous
#651FB3 #AF1FB3 #B31F6D
triadic
#AF1FB3 #B3AF1F #1FB3AF
tetradic
#AF1FB3 #B3651F #23B31F #1F6DB3
square
#AF1FB3 #B3651F #23B31F #1F6DB3
split-complementary
#AF1FB3 #6DB31F #1FB365
monochromatic
#490D4B #7C167F #AF1FB3 #D733DC #E168E5

Accessibility & contrast

On white

5.72
#AF1FB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#AF1FB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF1FB3
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF1FB3#FFFFFF#000000##FFFFFF
##AF1FB31.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB7
Deuteranopia (green-blind)
#496CB0
Tritanopia (blue-blind)
#B43C6C
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af1fb3;
/* rgb */ color: rgb(175, 31, 179);
/* oklch */ color: oklch(54.2% 0.232 326.9);
Tailwind
colors: {
  custom: {
    50: '#cb6fca',
    500: '#af1fb3',
    950: '#000000',
  },
}
SCSS
$custom: #af1fb3;
$custom-light: #cb6fca;
$custom-dark: #000000;
JSON
{
  "hex": "#af1fb3",
  "rgb": {
    "r": 175,
    "g": 31,
    "b": 179
  },
  "hsl": {
    "h": 298.378,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.54208,
    "c": 0.23182,
    "h": 326.9
  },
  "luminance": 0.13349
}

Semantic roles & 50–950 ramp

primary
#AF1FB3
secondary
#66CA64
accent
#ED3B3F
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #AF1FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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