#AF45AB#AF45AB

#AF45AB is a mid, vivid purple. Relative luminance 0.163; OKLCH L 57.0% C 0.184 H 329.2°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#AF45AB
RGBrgb(175, 69, 171)
HSLhsl(302, 43%, 48%)
HSVhsv(302, 61%, 69%)
CMYKcmyk(0%, 60.6%, 2.3%, 31.4%)
CIE-LABlab(47.38, 56.13, -34.25)
CIE-LCHlch(47.38, 65.75, 328.61°)
OKLaboklab(57.01% 0.1579 -0.0942)
OKLCHoklch(57.01% 0.184 329.2)
XYZxyz(27.1577, 16.3123, 40.2384)
Luminance0.1631 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF45AB #45AF49
analogous
#7E45AF #AF45AB #AF4576
triadic
#AF45AB #ABAF45 #45ABAF
tetradic
#AF45AB #AF7E45 #45AF49 #4576AF
square
#AF45AB #AF7E45 #45AF49 #4576AF
split-complementary
#AF45AB #76AF45 #45AF7E
monochromatic
#572255 #833480 #AF45AB #C56CC2 #D698D4

Accessibility & contrast

On white

4.93
#AF45AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#AF45AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF45AB
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF45AB#FFFFFF#000000##FFFFFF
##AF45AB1.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C67AE
Deuteranopia (green-blind)
#6075A8
Tritanopia (blue-blind)
#B55172
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #af45ab;
/* rgb */ color: rgb(175, 69, 171);
/* oklch */ color: oklch(57.0% 0.184 329.2);
Tailwind
colors: {
  custom: {
    50: '#ca7fc4',
    500: '#af45ab',
    950: '#000000',
  },
}
SCSS
$custom: #af45ab;
$custom-light: #ca7fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#af45ab",
  "rgb": {
    "r": 175,
    "g": 69,
    "b": 171
  },
  "hsl": {
    "h": 302.264,
    "s": 43.443,
    "l": 47.843
  },
  "oklch": {
    "l": 0.57009,
    "c": 0.18385,
    "h": 329.2
  },
  "luminance": 0.1631
}

Semantic roles & 50–950 ramp

primary
#AF45AB
secondary
#8DC28F
accent
#D35955
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140B13
muted
#827C82

Preview Lab

Preview with #AF45AB

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

Preview Lab → · Contrast checker → · Palette generator →

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