#AF45A3#AF45A3

#AF45A3 is a mid, vivid purple. Relative luminance 0.160; OKLCH L 56.6% C 0.177 H 332.3°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#AF45A3
RGBrgb(175, 69, 163)
HSLhsl(307, 43%, 48%)
HSVhsv(307, 61%, 69%)
CMYKcmyk(0%, 60.6%, 6.9%, 31.4%)
CIE-LABlab(47.00, 54.77, -30.12)
CIE-LCHlch(47.00, 62.51, 331.19°)
OKLaboklab(56.6% 0.1569 -0.0824)
OKLCHoklch(56.6% 0.177 332.3)
XYZxyz(26.4182, 16.0165, 36.3433)
Luminance0.1601 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF45A3 #45AF51
analogous
#8645AF #AF45A3 #AF456E
triadic
#AF45A3 #A3AF45 #45A3AF
tetradic
#AF45A3 #AF8645 #45AF51 #456EAF
square
#AF45A3 #AF8645 #45AF51 #456EAF
split-complementary
#AF45A3 #6EAF45 #45AF86
monochromatic
#572251 #83347A #AF45A3 #C56CBB #D698CF

Accessibility & contrast

On white

5.00
#AF45A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#AF45A3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF45A3
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF45A3#FFFFFF#000000##FFFFFF
##AF45A31.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4166A6
Deuteranopia (green-blind)
#6375A0
Tritanopia (blue-blind)
#B64E6E
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #af45a3;
/* rgb */ color: rgb(175, 69, 163);
/* oklch */ color: oklch(56.6% 0.177 332.3);
Tailwind
colors: {
  custom: {
    50: '#ca7fbe',
    500: '#af45a3',
    950: '#000000',
  },
}
SCSS
$custom: #af45a3;
$custom-light: #ca7fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#af45a3",
  "rgb": {
    "r": 175,
    "g": 69,
    "b": 163
  },
  "hsl": {
    "h": 306.792,
    "s": 43.443,
    "l": 47.843
  },
  "oklch": {
    "l": 0.56602,
    "c": 0.17724,
    "h": 332.3
  },
  "luminance": 0.16015
}

Semantic roles & 50–950 ramp

primary
#AF45A3
secondary
#8DC293
accent
#D36355
background
#FCF8FB
surface
#F9EFF7
border
#D2CAD0
text
#140B12
muted
#827C81

Preview Lab

Preview with #AF45A3

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

Preview Lab → · Contrast checker → · Palette generator →

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