#AF45AA#AF45AA

#AF45AA is a mid, vivid purple. Relative luminance 0.163; OKLCH L 57.0% C 0.183 H 329.6°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#AF45AA
RGBrgb(175, 69, 170)
HSLhsl(303, 43%, 48%)
HSVhsv(303, 61%, 69%)
CMYKcmyk(0%, 60.6%, 2.9%, 31.4%)
CIE-LABlab(47.33, 55.95, -33.73)
CIE-LCHlch(47.33, 65.34, 328.92°)
OKLaboklab(56.96% 0.1578 -0.0927)
OKLCHoklch(56.96% 0.183 329.6)
XYZxyz(27.0628, 16.2743, 39.7383)
Luminance0.1627 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF45AA #45AF4A
analogous
#7F45AF #AF45AA #AF4575
triadic
#AF45AA #AAAF45 #45AAAF
tetradic
#AF45AA #AF7F45 #45AF4A #4575AF
square
#AF45AA #AF7F45 #45AF4A #4575AF
split-complementary
#AF45AA #75AF45 #45AF7F
monochromatic
#572255 #83347F #AF45AA #C56CC1 #D698D3

Accessibility & contrast

On white

4.94
#AF45AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#AF45AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF45AA
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF45AA#FFFFFF#000000##FFFFFF
##AF45AA1.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C67AD
Deuteranopia (green-blind)
#6075A7
Tritanopia (blue-blind)
#B55071
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #af45aa;
/* rgb */ color: rgb(175, 69, 170);
/* oklch */ color: oklch(57.0% 0.183 329.6);
Tailwind
colors: {
  custom: {
    50: '#ca7fc3',
    500: '#af45aa',
    950: '#000000',
  },
}
SCSS
$custom: #af45aa;
$custom-light: #ca7fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#af45aa",
  "rgb": {
    "r": 175,
    "g": 69,
    "b": 170
  },
  "hsl": {
    "h": 302.83,
    "s": 43.443,
    "l": 47.843
  },
  "oklch": {
    "l": 0.56957,
    "c": 0.18301,
    "h": 329.6
  },
  "luminance": 0.16272
}

Semantic roles & 50–950 ramp

primary
#AF45AA
secondary
#8DC290
accent
#D35B55
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140B12
muted
#827C81

Preview Lab

Preview with #AF45AA

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

Preview Lab → · Contrast checker → · Palette generator →

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