#AF45AE#AF45AE

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

Color values

HEX#AF45AE
RGBrgb(175, 69, 174)
HSLhsl(301, 43%, 48%)
HSVhsv(301, 61%, 69%)
CMYKcmyk(0%, 60.6%, 0.6%, 31.4%)
CIE-LABlab(47.53, 56.65, -35.78)
CIE-LCHlch(47.53, 67.00, 327.73°)
OKLaboklab(57.17% 0.1582 -0.0986)
OKLCHoklch(57.17% 0.186 328.1)
XYZxyz(27.4469, 16.4280, 41.7615)
Luminance0.1643 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF45AE #45AF46
analogous
#7B45AF #AF45AE #AF4579
triadic
#AF45AE #AEAF45 #45AEAF
tetradic
#AF45AE #AF7B45 #45AF46 #4579AF
square
#AF45AE #AF7B45 #45AF46 #4579AF
split-complementary
#AF45AE #79AF45 #45AF7B
monochromatic
#572257 #833482 #AF45AE #C56CC4 #D698D6

Accessibility & contrast

On white

4.90
#AF45AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#AF45AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF45AE
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF45AE#FFFFFF#000000##FFFFFF
##AF45AE1.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3968B1
Deuteranopia (green-blind)
#5E76AB
Tritanopia (blue-blind)
#B45273
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #af45ae;
/* rgb */ color: rgb(175, 69, 174);
/* oklch */ color: oklch(57.2% 0.186 328.1);
Tailwind
colors: {
  custom: {
    50: '#ca7fc6',
    500: '#af45ae',
    950: '#000000',
  },
}
SCSS
$custom: #af45ae;
$custom-light: #ca7fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#af45ae",
  "rgb": {
    "r": 175,
    "g": 69,
    "b": 174
  },
  "hsl": {
    "h": 300.566,
    "s": 43.443,
    "l": 47.843
  },
  "oklch": {
    "l": 0.57166,
    "c": 0.18638,
    "h": 328.1
  },
  "luminance": 0.16426
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF45AE

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

Preview Lab → · Contrast checker → · Palette generator →

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