#AF45BC#AF45BC

#AF45BC is a mid, vivid purple. Relative luminance 0.170; OKLCH L 57.9% C 0.199 H 323.2°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#AF45BC
RGBrgb(175, 69, 188)
HSLhsl(293, 47%, 50%)
HSVhsv(293, 63%, 74%)
CMYKcmyk(6.9%, 63.3%, 0%, 26.3%)
CIE-LABlab(48.26, 59.16, -42.81)
CIE-LCHlch(48.26, 73.02, 324.11°)
OKLaboklab(57.94% 0.159 -0.119)
OKLCHoklch(57.94% 0.199 323.2)
XYZxyz(28.8836, 17.0026, 49.3277)
Luminance0.1700 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF45BC #52BC45
analogous
#7345BC #AF45BC #BC458E
triadic
#AF45BC #BCAF45 #45BCAF
tetradic
#AF45BC #BC7345 #52BC45 #458EBC
square
#AF45BC #BC7345 #52BC45 #458EBC
split-complementary
#AF45BC #8EBC45 #45BC73
monochromatic
#5C2463 #863490 #AF45BC #C272CC #D69FDC

Accessibility & contrast

On white

4.77
#AF45BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#AF45BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF45BC
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF45BC#FFFFFF#000000##FFFFFF
##AF45BC1.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C6BC0
Deuteranopia (green-blind)
#5677B9
Tritanopia (blue-blind)
#B2577A
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #af45bc;
/* rgb */ color: rgb(175, 69, 188);
/* oklch */ color: oklch(57.9% 0.199 323.2);
Tailwind
colors: {
  custom: {
    50: '#ca80d1',
    500: '#af45bc',
    950: '#000000',
  },
}
SCSS
$custom: #af45bc;
$custom-light: #ca80d1;
$custom-dark: #000000;
JSON
{
  "hex": "#af45bc",
  "rgb": {
    "r": 175,
    "g": 69,
    "b": 188
  },
  "hsl": {
    "h": 293.445,
    "s": 47.036,
    "l": 50.392
  },
  "oklch": {
    "l": 0.57935,
    "c": 0.19857,
    "h": 323.2
  },
  "luminance": 0.17001
}

Semantic roles & 50–950 ramp

primary
#AF45BC
secondary
#9AC994
accent
#D75160
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140B14
muted
#827C82

Preview Lab

Preview with #AF45BC

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

Preview Lab → · Contrast checker → · Palette generator →

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