#AF45AC#AF45AC

#AF45AC is a mid, vivid purple. Relative luminance 0.163; OKLCH L 57.1% C 0.185 H 328.8°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#AF45AC
RGBrgb(175, 69, 172)
HSLhsl(302, 43%, 48%)
HSVhsv(302, 61%, 69%)
CMYKcmyk(0%, 60.6%, 1.7%, 31.4%)
CIE-LABlab(47.43, 56.30, -34.76)
CIE-LCHlch(47.43, 66.16, 328.31°)
OKLaboklab(57.06% 0.158 -0.0957)
OKLCHoklch(57.06% 0.185 328.8)
XYZxyz(27.2534, 16.3506, 40.7422)
Luminance0.1635 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF45AC #45AF48
analogous
#7D45AF #AF45AC #AF4577
triadic
#AF45AC #ACAF45 #45ACAF
tetradic
#AF45AC #AF7D45 #45AF48 #4577AF
square
#AF45AC #AF7D45 #45AF48 #4577AF
split-complementary
#AF45AC #77AF45 #45AF7D
monochromatic
#572256 #833481 #AF45AC #C56CC3 #D698D5

Accessibility & contrast

On white

4.92
#AF45AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#AF45AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF45AC
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF45AC#FFFFFF#000000##FFFFFF
##AF45AC1.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B67AF
Deuteranopia (green-blind)
#5F76A9
Tritanopia (blue-blind)
#B55172
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #af45ac;
/* rgb */ color: rgb(175, 69, 172);
/* oklch */ color: oklch(57.1% 0.185 328.8);
Tailwind
colors: {
  custom: {
    50: '#ca7fc5',
    500: '#af45ac',
    950: '#000000',
  },
}
SCSS
$custom: #af45ac;
$custom-light: #ca7fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#af45ac",
  "rgb": {
    "r": 175,
    "g": 69,
    "b": 172
  },
  "hsl": {
    "h": 301.698,
    "s": 43.443,
    "l": 47.843
  },
  "oklch": {
    "l": 0.57061,
    "c": 0.18469,
    "h": 328.8
  },
  "luminance": 0.16349
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF45AC

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

Preview Lab → · Contrast checker → · Palette generator →

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