#AF45B9#AF45B9

#AF45B9 is a mid, vivid purple. Relative luminance 0.169; OKLCH L 57.8% C 0.196 H 324.2°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#AF45B9
RGBrgb(175, 69, 185)
HSLhsl(295, 46%, 50%)
HSVhsv(295, 63%, 73%)
CMYKcmyk(5.4%, 62.7%, 0%, 27.5%)
CIE-LABlab(48.10, 58.61, -41.32)
CIE-LCHlch(48.10, 71.71, 324.82°)
OKLaboklab(57.77% 0.1589 -0.1147)
OKLCHoklch(57.77% 0.196 324.2)
XYZxyz(28.5635, 16.8746, 47.6421)
Luminance0.1687 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF45B9 #4FB945
analogous
#7545B9 #AF45B9 #B94589
triadic
#AF45B9 #B9AF45 #45B9AF
tetradic
#AF45B9 #B97545 #4FB945 #4589B9
square
#AF45B9 #B97545 #4FB945 #4589B9
split-complementary
#AF45B9 #89B945 #45B975
monochromatic
#5B2460 #85348C #AF45B9 #C271CA #D59EDB

Accessibility & contrast

On white

4.80
#AF45B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#AF45B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF45B9
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF45B9#FFFFFF#000000##FFFFFF
##AF45B91.004.804.374.80
#FFFFFF4.801.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F6ABC
Deuteranopia (green-blind)
#5877B6
Tritanopia (blue-blind)
#B25679
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #af45b9;
/* rgb */ color: rgb(175, 69, 185);
/* oklch */ color: oklch(57.8% 0.196 324.2);
Tailwind
colors: {
  custom: {
    50: '#ca80ce',
    500: '#af45b9',
    950: '#000000',
  },
}
SCSS
$custom: #af45b9;
$custom-light: #ca80ce;
$custom-dark: #000000;
JSON
{
  "hex": "#af45b9",
  "rgb": {
    "r": 175,
    "g": 69,
    "b": 185
  },
  "hsl": {
    "h": 294.828,
    "s": 45.669,
    "l": 49.804
  },
  "oklch": {
    "l": 0.57766,
    "c": 0.19592,
    "h": 324.2
  },
  "luminance": 0.16873
}

Semantic roles & 50–950 ramp

primary
#AF45B9
secondary
#97C793
accent
#D5525E
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140B14
muted
#827C82

Preview Lab

Preview with #AF45B9

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

Preview Lab → · Contrast checker → · Palette generator →

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