#AF27B1#AF27B1

#AF27B1 is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.6% C 0.224 H 327.5°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#AF27B1
RGBrgb(175, 39, 177)
HSLhsl(299, 64%, 42%)
HSVhsv(299, 78%, 69%)
CMYKcmyk(1.1%, 78%, 0%, 30.6%)
CIE-LABlab(43.86, 67.97, -43.36)
CIE-LCHlch(43.86, 80.62, 327.46°)
OKLaboklab(54.58% 0.1888 -0.1204)
OKLCHoklch(54.58% 0.224 327.5)
XYZxyz(26.3401, 13.7413, 42.8515)
Luminance0.1374 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF27B1 #29B127
analogous
#6A27B1 #AF27B1 #B1276E
triadic
#AF27B1 #B1AF27 #27B1AF
tetradic
#AF27B1 #B16A27 #29B127 #276EB1
square
#AF27B1 #B16A27 #29B127 #276EB1
split-complementary
#AF27B1 #6EB127 #27B16A
monochromatic
#4C114D #7D1C7F #AF27B1 #D340D5 #DE72E0

Accessibility & contrast

On white

5.60
#AF27B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#AF27B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF27B1
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF27B1#FFFFFF#000000##FFFFFF
##AF27B11.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB5
Deuteranopia (green-blind)
#4D6EAE
Tritanopia (blue-blind)
#B43F6C
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af27b1;
/* rgb */ color: rgb(175, 39, 177);
/* oklch */ color: oklch(54.6% 0.224 327.5);
Tailwind
colors: {
  custom: {
    50: '#cb72c9',
    500: '#af27b1',
    950: '#000000',
  },
}
SCSS
$custom: #af27b1;
$custom-light: #cb72c9;
$custom-dark: #000000;
JSON
{
  "hex": "#af27b1",
  "rgb": {
    "r": 175,
    "g": 39,
    "b": 177
  },
  "hsl": {
    "h": 299.13,
    "s": 63.889,
    "l": 42.353
  },
  "oklch": {
    "l": 0.54577,
    "c": 0.2239,
    "h": 327.5
  },
  "luminance": 0.13739
}

Semantic roles & 50–950 ramp

primary
#AF27B1
secondary
#6EC76D
accent
#E74143
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #AF27B1

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

Preview Lab → · Contrast checker → · Palette generator →

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