#AF27B2#AF27B2

#AF27B2 is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.6% C 0.225 H 327.1°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#AF27B2
RGBrgb(175, 39, 178)
HSLhsl(299, 64%, 43%)
HSVhsv(299, 78%, 70%)
CMYKcmyk(1.7%, 78.1%, 0%, 30.2%)
CIE-LABlab(43.92, 68.13, -43.86)
CIE-LCHlch(43.92, 81.03, 327.23°)
OKLaboklab(54.64% 0.1887 -0.1219)
OKLCHoklch(54.64% 0.225 327.1)
XYZxyz(26.4402, 13.7813, 43.3783)
Luminance0.1378 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF27B2 #2AB227
analogous
#6927B2 #AF27B2 #B22770
triadic
#AF27B2 #B2AF27 #27B2AF
tetradic
#AF27B2 #B26927 #2AB227 #2770B2
square
#AF27B2 #B26927 #2AB227 #2770B2
split-complementary
#AF27B2 #70B227 #27B269
monochromatic
#4C114E #7E1C80 #AF27B2 #D241D5 #DE73E0

Accessibility & contrast

On white

5.59
#AF27B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#AF27B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF27B2
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF27B2#FFFFFF#000000##FFFFFF
##AF27B21.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB6
Deuteranopia (green-blind)
#4D6EAF
Tritanopia (blue-blind)
#B4406C
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af27b2;
/* rgb */ color: rgb(175, 39, 178);
/* oklch */ color: oklch(54.6% 0.225 327.1);
Tailwind
colors: {
  custom: {
    50: '#cb72c9',
    500: '#af27b2',
    950: '#000000',
  },
}
SCSS
$custom: #af27b2;
$custom-light: #cb72c9;
$custom-dark: #000000;
JSON
{
  "hex": "#af27b2",
  "rgb": {
    "r": 175,
    "g": 39,
    "b": 178
  },
  "hsl": {
    "h": 298.705,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.54636,
    "c": 0.22464,
    "h": 327.1
  },
  "luminance": 0.13779
}

Semantic roles & 50–950 ramp

primary
#AF27B2
secondary
#6FC86D
accent
#E74144
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #AF27B2

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

Preview Lab → · Contrast checker → · Palette generator →

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