#AF27B3#AF27B3

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

Color values

HEX#AF27B3
RGBrgb(175, 39, 179)
HSLhsl(298, 64%, 43%)
HSVhsv(298, 78%, 70%)
CMYKcmyk(2.2%, 78.2%, 0%, 29.8%)
CIE-LABlab(43.98, 68.29, -44.35)
CIE-LCHlch(43.98, 81.43, 327.00°)
OKLaboklab(54.7% 0.1887 -0.1233)
OKLCHoklch(54.7% 0.225 326.8)
XYZxyz(26.5410, 13.8216, 43.9090)
Luminance0.1382 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF27B3 #2BB327
analogous
#6927B3 #AF27B3 #B32771
triadic
#AF27B3 #B3AF27 #27B3AF
tetradic
#AF27B3 #B36927 #2BB327 #2771B3
square
#AF27B3 #B36927 #2BB327 #2771B3
split-complementary
#AF27B3 #71B327 #27B369
monochromatic
#4D114E #7E1C81 #AF27B3 #D141D6 #DE74E1

Accessibility & contrast

On white

5.58
#AF27B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF27B3
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF27B3#FFFFFF#000000##FFFFFF
##AF27B31.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB7
Deuteranopia (green-blind)
#4C6EB0
Tritanopia (blue-blind)
#B4406D
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af27b3;
/* rgb */ color: rgb(175, 39, 179);
/* oklch */ color: oklch(54.7% 0.225 326.8);
Tailwind
colors: {
  custom: {
    50: '#cb72ca',
    500: '#af27b3',
    950: '#000000',
  },
}
SCSS
$custom: #af27b3;
$custom-light: #cb72ca;
$custom-dark: #000000;
JSON
{
  "hex": "#af27b3",
  "rgb": {
    "r": 175,
    "g": 39,
    "b": 179
  },
  "hsl": {
    "h": 298.286,
    "s": 64.22,
    "l": 42.745
  },
  "oklch": {
    "l": 0.54697,
    "c": 0.22539,
    "h": 326.8
  },
  "luminance": 0.1382
}

Semantic roles & 50–950 ramp

primary
#AF27B3
secondary
#70C86E
accent
#E74145
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #AF27B3

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

Preview Lab → · Contrast checker → · Palette generator →

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