#AF45AD#AF45AD

#AF45AD is a mid, vivid purple. Relative luminance 0.164; OKLCH L 57.1% C 0.186 H 328.4°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#AF45AD
RGBrgb(175, 69, 173)
HSLhsl(301, 43%, 48%)
HSVhsv(301, 61%, 69%)
CMYKcmyk(0%, 60.6%, 1.1%, 31.4%)
CIE-LABlab(47.48, 56.47, -35.27)
CIE-LCHlch(47.48, 66.58, 328.02°)
OKLaboklab(57.11% 0.1581 -0.0972)
OKLCHoklch(57.11% 0.186 328.4)
XYZxyz(27.3498, 16.3891, 41.2499)
Luminance0.1639 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF45AD #45AF47
analogous
#7C45AF #AF45AD #AF4578
triadic
#AF45AD #ADAF45 #45ADAF
tetradic
#AF45AD #AF7C45 #45AF47 #4578AF
square
#AF45AD #AF7C45 #45AF47 #4578AF
split-complementary
#AF45AD #78AF45 #45AF7C
monochromatic
#572256 #833482 #AF45AD #C56CC3 #D698D5

Accessibility & contrast

On white

4.91
#AF45AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#AF45AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF45AD
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF45AD#FFFFFF#000000##FFFFFF
##AF45AD1.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A68B0
Deuteranopia (green-blind)
#5F76AA
Tritanopia (blue-blind)
#B45273
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #af45ad;
/* rgb */ color: rgb(175, 69, 173);
/* oklch */ color: oklch(57.1% 0.186 328.4);
Tailwind
colors: {
  custom: {
    50: '#ca7fc6',
    500: '#af45ad',
    950: '#000000',
  },
}
SCSS
$custom: #af45ad;
$custom-light: #ca7fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#af45ad",
  "rgb": {
    "r": 175,
    "g": 69,
    "b": 173
  },
  "hsl": {
    "h": 301.132,
    "s": 43.443,
    "l": 47.843
  },
  "oklch": {
    "l": 0.57113,
    "c": 0.18553,
    "h": 328.4
  },
  "luminance": 0.16387
}

Semantic roles & 50–950 ramp

primary
#AF45AD
secondary
#8DC28E
accent
#D35755
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140B13
muted
#827C82

Preview Lab

Preview with #AF45AD

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

Preview Lab → · Contrast checker → · Palette generator →

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