#AF45C7#AF45C7

#AF45C7 is a mid, highly saturated purple. Relative luminance 0.175; OKLCH L 58.6% C 0.208 H 319.7°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#AF45C7
RGBrgb(175, 69, 199)
HSLhsl(289, 54%, 53%)
HSVhsv(289, 65%, 78%)
CMYKcmyk(12.1%, 65.3%, 0%, 22%)
CIE-LABlab(48.88, 61.22, -48.20)
CIE-LCHlch(48.88, 77.92, 321.78°)
OKLaboklab(58.58% 0.159 -0.1347)
OKLCHoklch(58.58% 0.208 319.7)
XYZxyz(30.1148, 17.4951, 55.8124)
Luminance0.1749 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF45C7 #5DC745
analogous
#6E45C7 #AF45C7 #C7459E
triadic
#AF45C7 #C7AF45 #45C7AF
tetradic
#AF45C7 #C76E45 #5DC745 #459EC7
square
#AF45C7 #C76E45 #5DC745 #459EC7
split-complementary
#AF45C7 #9EC745 #45C76E
monochromatic
#612270 #8A309F #AF45C7 #C374D5 #D7A3E3

Accessibility & contrast

On white

4.67
#AF45C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#AF45C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AF45C7
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF45C7#FFFFFF#000000##FFFFFF
##AF45C71.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B6DCB
Deuteranopia (green-blind)
#4F78C4
Tritanopia (blue-blind)
#B05C80
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #af45c7;
/* rgb */ color: rgb(175, 69, 199);
/* oklch */ color: oklch(58.6% 0.208 319.7);
Tailwind
colors: {
  custom: {
    50: '#ca80d8',
    500: '#af45c7',
    950: '#000000',
  },
}
SCSS
$custom: #af45c7;
$custom-light: #ca80d8;
$custom-dark: #000000;
JSON
{
  "hex": "#af45c7",
  "rgb": {
    "r": 175,
    "g": 69,
    "b": 199
  },
  "hsl": {
    "h": 288.923,
    "s": 53.719,
    "l": 52.549
  },
  "oklch": {
    "l": 0.58577,
    "c": 0.20844,
    "h": 319.7
  },
  "luminance": 0.17494
}

Semantic roles & 50–950 ramp

primary
#AF45C7
secondary
#A2D098
accent
#DD4B66
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF45C7

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

Preview Lab → · Contrast checker → · Palette generator →

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