#AF45A2#AF45A2

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

Color values

HEX#AF45A2
RGBrgb(175, 69, 162)
HSLhsl(307, 43%, 48%)
HSVhsv(307, 61%, 69%)
CMYKcmyk(0%, 60.6%, 7.4%, 31.4%)
CIE-LABlab(46.95, 54.60, -29.60)
CIE-LCHlch(46.95, 62.11, 331.54°)
OKLaboklab(56.55% 0.1568 -0.0809)
OKLCHoklch(56.55% 0.176 332.7)
XYZxyz(26.3289, 15.9808, 35.8733)
Luminance0.1598 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF45A2 #45AF52
analogous
#8745AF #AF45A2 #AF456D
triadic
#AF45A2 #A2AF45 #45A2AF
tetradic
#AF45A2 #AF8745 #45AF52 #456DAF
square
#AF45A2 #AF8745 #45AF52 #456DAF
split-complementary
#AF45A2 #6DAF45 #45AF87
monochromatic
#572251 #833479 #AF45A2 #C56CBA #D698CF

Accessibility & contrast

On white

5.01
#AF45A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF45A2
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF45A2#FFFFFF#000000##FFFFFF
##AF45A21.005.014.205.01
#FFFFFF5.011.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4266A5
Deuteranopia (green-blind)
#64759F
Tritanopia (blue-blind)
#B64D6D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #af45a2;
/* rgb */ color: rgb(175, 69, 162);
/* oklch */ color: oklch(56.6% 0.176 332.7);
Tailwind
colors: {
  custom: {
    50: '#ca7fbe',
    500: '#af45a2',
    950: '#000000',
  },
}
SCSS
$custom: #af45a2;
$custom-light: #ca7fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#af45a2",
  "rgb": {
    "r": 175,
    "g": 69,
    "b": 162
  },
  "hsl": {
    "h": 307.358,
    "s": 43.443,
    "l": 47.843
  },
  "oklch": {
    "l": 0.56552,
    "c": 0.17644,
    "h": 332.7
  },
  "luminance": 0.15979
}

Semantic roles & 50–950 ramp

primary
#AF45A2
secondary
#8DC294
accent
#D36455
background
#FCF8FB
surface
#F9EFF6
border
#D2CAD0
text
#140B12
muted
#827C81

Preview Lab

Preview with #AF45A2

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

Preview Lab → · Contrast checker → · Palette generator →

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