#AF27A3#AF27A3

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

Color values

HEX#AF27A3
RGBrgb(175, 39, 163)
HSLhsl(305, 64%, 42%)
HSVhsv(305, 78%, 69%)
CMYKcmyk(0%, 77.7%, 6.9%, 31.4%)
CIE-LABlab(43.08, 65.77, -36.27)
CIE-LCHlch(43.08, 75.11, 331.12°)
OKLaboklab(53.77% 0.1889 -0.0998)
OKLCHoklch(53.77% 0.214 332.1)
XYZxyz(25.0157, 13.2115, 35.8758)
Luminance0.1321 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF27A3 #27AF33
analogous
#7727AF #AF27A3 #AF275F
triadic
#AF27A3 #A3AF27 #27A3AF
tetradic
#AF27A3 #AF7727 #27AF33 #275FAF
square
#AF27A3 #AF7727 #27AF33 #275FAF
split-complementary
#AF27A3 #5FAF27 #27AF77
monochromatic
#4B1146 #7D1C74 #AF27A3 #D43FC7 #DF71D6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF27A3#FFFFFF#000000##FFFFFF
##AF27A31.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)
#1C5AA6
Deuteranopia (green-blind)
#556CA0
Tritanopia (blue-blind)
#B73864
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af27a3;
/* rgb */ color: rgb(175, 39, 163);
/* oklch */ color: oklch(53.8% 0.214 332.1);
Tailwind
colors: {
  custom: {
    50: '#cb71bf',
    500: '#af27a3',
    950: '#000000',
  },
}
SCSS
$custom: #af27a3;
$custom-light: #cb71bf;
$custom-dark: #000000;
JSON
{
  "hex": "#af27a3",
  "rgb": {
    "r": 175,
    "g": 39,
    "b": 163
  },
  "hsl": {
    "h": 305.294,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.5377,
    "c": 0.21366,
    "h": 332.1
  },
  "luminance": 0.13209
}

Semantic roles & 50–950 ramp

primary
#AF27A3
secondary
#6BC673
accent
#E75041
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF27A3

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

Preview Lab → · Contrast checker → · Palette generator →

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