#AF45C1#AF45C1

#AF45C1 is a mid, highly saturated purple. Relative luminance 0.172; OKLCH L 58.2% C 0.203 H 321.6°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#AF45C1
RGBrgb(175, 69, 193)
HSLhsl(291, 50%, 51%)
HSVhsv(291, 64%, 76%)
CMYKcmyk(9.3%, 64.2%, 0%, 24.3%)
CIE-LABlab(48.54, 60.09, -45.27)
CIE-LCHlch(48.54, 75.23, 323.00°)
OKLaboklab(58.22% 0.1591 -0.1262)
OKLCHoklch(58.22% 0.203 321.6)
XYZxyz(29.4319, 17.2220, 52.2156)
Luminance0.1722 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF45C1 #57C145
analogous
#7145C1 #AF45C1 #C14595
triadic
#AF45C1 #C1AF45 #45C1AF
tetradic
#AF45C1 #C17145 #57C145 #4595C1
square
#AF45C1 #C17145 #57C145 #4595C1
split-complementary
#AF45C1 #95C145 #45C171
monochromatic
#5F2369 #883297 #AF45C1 #C373D0 #D6A1E0

Accessibility & contrast

On white

4.73
#AF45C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#AF45C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF45C1
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF45C1#FFFFFF#000000##FFFFFF
##AF45C11.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#256CC5
Deuteranopia (green-blind)
#5377BE
Tritanopia (blue-blind)
#B1597D
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #af45c1;
/* rgb */ color: rgb(175, 69, 193);
/* oklch */ color: oklch(58.2% 0.203 321.6);
Tailwind
colors: {
  custom: {
    50: '#ca80d4',
    500: '#af45c1',
    950: '#000000',
  },
}
SCSS
$custom: #af45c1;
$custom-light: #ca80d4;
$custom-dark: #000000;
JSON
{
  "hex": "#af45c1",
  "rgb": {
    "r": 175,
    "g": 69,
    "b": 193
  },
  "hsl": {
    "h": 291.29,
    "s": 50,
    "l": 51.373
  },
  "oklch": {
    "l": 0.58223,
    "c": 0.20303,
    "h": 321.6
  },
  "luminance": 0.1722
}

Semantic roles & 50–950 ramp

primary
#AF45C1
secondary
#9ECC96
accent
#DA4E62
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140B14
muted
#827C83

Preview Lab

Preview with #AF45C1

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

Preview Lab → · Contrast checker → · Palette generator →

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