#AF45BF#AF45BF

#AF45BF is a mid, highly saturated purple. Relative luminance 0.171; OKLCH L 58.1% C 0.201 H 322.2°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#AF45BF
RGBrgb(175, 69, 191)
HSLhsl(292, 49%, 51%)
HSVhsv(292, 64%, 75%)
CMYKcmyk(8.4%, 63.9%, 0%, 25.1%)
CIE-LABlab(48.43, 59.71, -44.29)
CIE-LCHlch(48.43, 74.35, 323.44°)
OKLaboklab(58.11% 0.159 -0.1233)
OKLCHoklch(58.11% 0.201 322.2)
XYZxyz(29.2103, 17.1333, 51.0486)
Luminance0.1713 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF45BF #55BF45
analogous
#7245BF #AF45BF #BF4592
triadic
#AF45BF #BFAF45 #45BFAF
tetradic
#AF45BF #BF7245 #55BF45 #4592BF
square
#AF45BF #BF7245 #55BF45 #4592BF
split-complementary
#AF45BF #92BF45 #45BF72
monochromatic
#5E2366 #873394 #AF45BF #C373CF #D6A0DE

Accessibility & contrast

On white

4.74
#AF45BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#AF45BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF45BF
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF45BF#FFFFFF#000000##FFFFFF
##AF45BF1.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#286BC3
Deuteranopia (green-blind)
#5577BC
Tritanopia (blue-blind)
#B1587C
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #af45bf;
/* rgb */ color: rgb(175, 69, 191);
/* oklch */ color: oklch(58.1% 0.201 322.2);
Tailwind
colors: {
  custom: {
    50: '#ca80d3',
    500: '#af45bf',
    950: '#000000',
  },
}
SCSS
$custom: #af45bf;
$custom-light: #ca80d3;
$custom-dark: #000000;
JSON
{
  "hex": "#af45bf",
  "rgb": {
    "r": 175,
    "g": 69,
    "b": 191
  },
  "hsl": {
    "h": 292.131,
    "s": 48.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.58107,
    "c": 0.20124,
    "h": 322.2
  },
  "luminance": 0.17132
}

Semantic roles & 50–950 ramp

primary
#AF45BF
secondary
#9CCB95
accent
#D84F61
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140B14
muted
#827C83

Preview Lab

Preview with #AF45BF

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

Preview Lab → · Contrast checker → · Palette generator →

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