#AF45BA#AF45BA

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

Color values

HEX#AF45BA
RGBrgb(175, 69, 186)
HSLhsl(294, 46%, 50%)
HSVhsv(294, 63%, 73%)
CMYKcmyk(5.9%, 62.9%, 0%, 27.1%)
CIE-LABlab(48.16, 58.79, -41.81)
CIE-LCHlch(48.16, 72.14, 324.58°)
OKLaboklab(57.82% 0.1589 -0.1161)
OKLCHoklch(57.82% 0.197 323.8)
XYZxyz(28.6695, 16.9170, 48.2001)
Luminance0.1691 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF45BA #50BA45
analogous
#7545BA #AF45BA #BA458A
triadic
#AF45BA #BAAF45 #45BAAF
tetradic
#AF45BA #BA7545 #50BA45 #458ABA
square
#AF45BA #BA7545 #50BA45 #458ABA
split-complementary
#AF45BA #8ABA45 #45BA75
monochromatic
#5B2461 #85348D #AF45BA #C272CB #D59EDB

Accessibility & contrast

On white

4.79
#AF45BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#AF45BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF45BA
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF45BA#FFFFFF#000000##FFFFFF
##AF45BA1.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E6ABE
Deuteranopia (green-blind)
#5877B7
Tritanopia (blue-blind)
#B25779
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #af45ba;
/* rgb */ color: rgb(175, 69, 186);
/* oklch */ color: oklch(57.8% 0.197 323.8);
Tailwind
colors: {
  custom: {
    50: '#ca80cf',
    500: '#af45ba',
    950: '#000000',
  },
}
SCSS
$custom: #af45ba;
$custom-light: #ca80cf;
$custom-dark: #000000;
JSON
{
  "hex": "#af45ba",
  "rgb": {
    "r": 175,
    "g": 69,
    "b": 186
  },
  "hsl": {
    "h": 294.359,
    "s": 45.882,
    "l": 50
  },
  "oklch": {
    "l": 0.57822,
    "c": 0.1968,
    "h": 323.8
  },
  "luminance": 0.16915
}

Semantic roles & 50–950 ramp

primary
#AF45BA
secondary
#98C893
accent
#D6525F
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140B14
muted
#827C82

Preview Lab

Preview with #AF45BA

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

Preview Lab → · Contrast checker → · Palette generator →

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