#AF1BB4#AF1BB4

#AF1BB4 is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 54.1% C 0.235 H 326.7°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#AF1BB4
RGBrgb(175, 27, 180)
HSLhsl(298, 74%, 41%)
HSVhsv(298, 85%, 71%)
CMYKcmyk(2.8%, 85%, 0%, 29.4%)
CIE-LABlab(43.06, 71.31, -46.41)
CIE-LCHlch(43.06, 85.08, 326.94°)
OKLaboklab(54.06% 0.1966 -0.1292)
OKLCHoklch(54.06% 0.235 326.7)
XYZxyz(26.3089, 13.1950, 44.3324)
Luminance0.1319 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF1BB4 #20B41B
analogous
#621BB4 #AF1BB4 #B41B6C
triadic
#AF1BB4 #B4AF1B #1BB4AF
tetradic
#AF1BB4 #B4621B #20B41B #1B6CB4
square
#AF1BB4 #B4621B #20B41B #1B6CB4
split-complementary
#AF1BB4 #6CB41B #1BB462
monochromatic
#480B4A #7B137F #AF1BB4 #DA2DDF #E362E7

Accessibility & contrast

On white

5.77
#AF1BB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#AF1BB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF1BB4
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF1BB4#FFFFFF#000000##FFFFFF
##AF1BB41.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB8
Deuteranopia (green-blind)
#476CB1
Tritanopia (blue-blind)
#B43B6B
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af1bb4;
/* rgb */ color: rgb(175, 27, 180);
/* oklch */ color: oklch(54.1% 0.235 326.7);
Tailwind
colors: {
  custom: {
    50: '#cb6ecb',
    500: '#af1bb4',
    950: '#000000',
  },
}
SCSS
$custom: #af1bb4;
$custom-light: #cb6ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#af1bb4",
  "rgb": {
    "r": 175,
    "g": 27,
    "b": 180
  },
  "hsl": {
    "h": 298.039,
    "s": 73.913,
    "l": 40.588
  },
  "oklch": {
    "l": 0.54064,
    "c": 0.23526,
    "h": 326.7
  },
  "luminance": 0.13193
}

Semantic roles & 50–950 ramp

primary
#AF1BB4
secondary
#62CC5F
accent
#F1373D
background
#FDF7FC
surface
#FAEDF9
border
#D3C8D2
text
#140813
muted
#837B82

Preview Lab

Preview with #AF1BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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