#AF27B4#AF27B4

#AF27B4 is a mid, highly saturated purple. Relative luminance 0.139; OKLCH L 54.8% C 0.226 H 326.5°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#AF27B4
RGBrgb(175, 39, 180)
HSLhsl(298, 64%, 43%)
HSVhsv(298, 78%, 71%)
CMYKcmyk(2.8%, 78.3%, 0%, 29.4%)
CIE-LABlab(44.03, 68.46, -44.85)
CIE-LCHlch(44.03, 81.84, 326.77°)
OKLaboklab(54.76% 0.1886 -0.1247)
OKLCHoklch(54.76% 0.226 326.5)
XYZxyz(26.6425, 13.8622, 44.4436)
Luminance0.1386 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF27B4 #2CB427
analogous
#6827B4 #AF27B4 #B42773
triadic
#AF27B4 #B4AF27 #27B4AF
tetradic
#AF27B4 #B46827 #2CB427 #2773B4
square
#AF27B4 #B46827 #2CB427 #2773B4
split-complementary
#AF27B4 #73B427 #27B468
monochromatic
#4D114F #7E1C82 #AF27B4 #D142D6 #DD74E1

Accessibility & contrast

On white

5.57
#AF27B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#AF27B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF27B4
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF27B4#FFFFFF#000000##FFFFFF
##AF27B41.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB8
Deuteranopia (green-blind)
#4B6EB1
Tritanopia (blue-blind)
#B4416E
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af27b4;
/* rgb */ color: rgb(175, 39, 180);
/* oklch */ color: oklch(54.8% 0.226 326.5);
Tailwind
colors: {
  custom: {
    50: '#cb72cb',
    500: '#af27b4',
    950: '#000000',
  },
}
SCSS
$custom: #af27b4;
$custom-light: #cb72cb;
$custom-dark: #000000;
JSON
{
  "hex": "#af27b4",
  "rgb": {
    "r": 175,
    "g": 39,
    "b": 180
  },
  "hsl": {
    "h": 297.872,
    "s": 64.384,
    "l": 42.941
  },
  "oklch": {
    "l": 0.54757,
    "c": 0.22614,
    "h": 326.5
  },
  "luminance": 0.1386
}

Semantic roles & 50–950 ramp

primary
#AF27B4
secondary
#72C86F
accent
#E74046
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #AF27B4

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

Preview Lab → · Contrast checker → · Palette generator →

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