#AF45C9#AF45C9

#AF45C9 is a mid, highly saturated purple. Relative luminance 0.176; OKLCH L 58.7% C 0.210 H 319.1°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#AF45C9
RGBrgb(175, 69, 201)
HSLhsl(288, 55%, 53%)
HSVhsv(288, 66%, 79%)
CMYKcmyk(12.9%, 65.7%, 0%, 21.2%)
CIE-LABlab(48.99, 61.60, -49.17)
CIE-LCHlch(48.99, 78.82, 321.40°)
OKLaboklab(58.7% 0.159 -0.1376)
OKLCHoklch(58.7% 0.21 319.1)
XYZxyz(30.3486, 17.5886, 57.0434)
Luminance0.1759 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF45C9 #5FC945
analogous
#6D45C9 #AF45C9 #C945A1
triadic
#AF45C9 #C9AF45 #45C9AF
tetradic
#AF45C9 #C96D45 #5FC945 #45A1C9
square
#AF45C9 #C96D45 #5FC945 #45A1C9
split-complementary
#AF45C9 #A1C945 #45C96D
monochromatic
#622172 #8B2FA2 #AF45C9 #C374D7 #D8A4E5

Accessibility & contrast

On white

4.65
#AF45C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#AF45C9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AF45C9
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF45C9#FFFFFF#000000##FFFFFF
##AF45C91.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#166DCD
Deuteranopia (green-blind)
#4E78C6
Tritanopia (blue-blind)
#AF5C81
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #af45c9;
/* rgb */ color: rgb(175, 69, 201);
/* oklch */ color: oklch(58.7% 0.210 319.1);
Tailwind
colors: {
  custom: {
    50: '#ca80da',
    500: '#af45c9',
    950: '#000000',
  },
}
SCSS
$custom: #af45c9;
$custom-light: #ca80da;
$custom-dark: #000000;
JSON
{
  "hex": "#af45c9",
  "rgb": {
    "r": 175,
    "g": 69,
    "b": 201
  },
  "hsl": {
    "h": 288.182,
    "s": 55,
    "l": 52.941
  },
  "oklch": {
    "l": 0.58697,
    "c": 0.21026,
    "h": 319.1
  },
  "luminance": 0.17587
}

Semantic roles & 50–950 ramp

primary
#AF45C9
secondary
#A4D198
accent
#DE4967
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF45C9

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

Preview Lab → · Contrast checker → · Palette generator →

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