#AF27A2#AF27A2

#AF27A2 is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 53.7% C 0.213 H 332.5°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#AF27A2
RGBrgb(175, 39, 162)
HSLhsl(306, 64%, 42%)
HSVhsv(306, 78%, 69%)
CMYKcmyk(0%, 77.7%, 7.4%, 31.4%)
CIE-LABlab(43.03, 65.62, -35.76)
CIE-LCHlch(43.03, 74.73, 331.41°)
OKLaboklab(53.71% 0.1889 -0.0984)
OKLCHoklch(53.71% 0.213 332.5)
XYZxyz(24.9264, 13.1758, 35.4058)
Luminance0.1317 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF27A2 #27AF34
analogous
#7827AF #AF27A2 #AF275E
triadic
#AF27A2 #A2AF27 #27A2AF
tetradic
#AF27A2 #AF7827 #27AF34 #275EAF
square
#AF27A2 #AF7827 #27AF34 #275EAF
split-complementary
#AF27A2 #5EAF27 #27AF78
monochromatic
#4B1145 #7D1C74 #AF27A2 #D43FC6 #DF71D5

Accessibility & contrast

On white

5.78
#AF27A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#AF27A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF27A2
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF27A2#FFFFFF#000000##FFFFFF
##AF27A21.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D59A5
Deuteranopia (green-blind)
#566C9F
Tritanopia (blue-blind)
#B73763
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af27a2;
/* rgb */ color: rgb(175, 39, 162);
/* oklch */ color: oklch(53.7% 0.213 332.5);
Tailwind
colors: {
  custom: {
    50: '#cb71be',
    500: '#af27a2',
    950: '#000000',
  },
}
SCSS
$custom: #af27a2;
$custom-light: #cb71be;
$custom-dark: #000000;
JSON
{
  "hex": "#af27a2",
  "rgb": {
    "r": 175,
    "g": 39,
    "b": 162
  },
  "hsl": {
    "h": 305.735,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.53714,
    "c": 0.21295,
    "h": 332.5
  },
  "luminance": 0.13174
}

Semantic roles & 50–950 ramp

primary
#AF27A2
secondary
#6BC674
accent
#E75141
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF27A2

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

Preview Lab → · Contrast checker → · Palette generator →

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