#AF45A4#AF45A4

#AF45A4 is a mid, vivid purple. Relative luminance 0.161; OKLCH L 56.7% C 0.178 H 331.9°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#AF45A4
RGBrgb(175, 69, 164)
HSLhsl(306, 43%, 48%)
HSVhsv(306, 61%, 69%)
CMYKcmyk(0%, 60.6%, 6.3%, 31.4%)
CIE-LABlab(47.04, 54.94, -30.64)
CIE-LCHlch(47.04, 62.90, 330.85°)
OKLaboklab(56.65% 0.1571 -0.0839)
OKLCHoklch(56.65% 0.178 331.9)
XYZxyz(26.5081, 16.0525, 36.8170)
Luminance0.1605 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF45A4 #45AF50
analogous
#8545AF #AF45A4 #AF456F
triadic
#AF45A4 #A4AF45 #45A4AF
tetradic
#AF45A4 #AF8545 #45AF50 #456FAF
square
#AF45A4 #AF8545 #45AF50 #456FAF
split-complementary
#AF45A4 #6FAF45 #45AF85
monochromatic
#572252 #83347B #AF45A4 #C56CBC #D698D0

Accessibility & contrast

On white

4.99
#AF45A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#AF45A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF45A4
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF45A4#FFFFFF#000000##FFFFFF
##AF45A41.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4066A7
Deuteranopia (green-blind)
#6375A1
Tritanopia (blue-blind)
#B64E6E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #af45a4;
/* rgb */ color: rgb(175, 69, 164);
/* oklch */ color: oklch(56.7% 0.178 331.9);
Tailwind
colors: {
  custom: {
    50: '#ca7fbf',
    500: '#af45a4',
    950: '#000000',
  },
}
SCSS
$custom: #af45a4;
$custom-light: #ca7fbf;
$custom-dark: #000000;
JSON
{
  "hex": "#af45a4",
  "rgb": {
    "r": 175,
    "g": 69,
    "b": 164
  },
  "hsl": {
    "h": 306.226,
    "s": 43.443,
    "l": 47.843
  },
  "oklch": {
    "l": 0.56651,
    "c": 0.17806,
    "h": 331.9
  },
  "luminance": 0.16051
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF45A4

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

Preview Lab → · Contrast checker → · Palette generator →

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