#AF45C2#AF45C2

#AF45C2 is a mid, highly saturated purple. Relative luminance 0.173; OKLCH L 58.3% C 0.204 H 321.3°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#AF45C2
RGBrgb(175, 69, 194)
HSLhsl(291, 51%, 52%)
HSVhsv(291, 64%, 76%)
CMYKcmyk(9.8%, 64.4%, 0%, 23.9%)
CIE-LABlab(48.59, 60.27, -45.76)
CIE-LCHlch(48.59, 75.68, 322.79°)
OKLaboklab(58.28% 0.1591 -0.1276)
OKLCHoklch(58.28% 0.204 321.3)
XYZxyz(29.5438, 17.2667, 52.8051)
Luminance0.1726 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF45C2 #58C245
analogous
#7145C2 #AF45C2 #C24597
triadic
#AF45C2 #C2AF45 #45C2AF
tetradic
#AF45C2 #C27145 #58C245 #4597C2
square
#AF45C2 #C27145 #58C245 #4597C2
split-complementary
#AF45C2 #97C245 #45C271
monochromatic
#5F236A #883298 #AF45C2 #C373D1 #D7A1E0

Accessibility & contrast

On white

4.72
#AF45C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#AF45C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF45C2
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF45C2#FFFFFF#000000##FFFFFF
##AF45C21.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#246CC6
Deuteranopia (green-blind)
#5377BF
Tritanopia (blue-blind)
#B15A7E
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #af45c2;
/* rgb */ color: rgb(175, 69, 194);
/* oklch */ color: oklch(58.3% 0.204 321.3);
Tailwind
colors: {
  custom: {
    50: '#ca80d5',
    500: '#af45c2',
    950: '#000000',
  },
}
SCSS
$custom: #af45c2;
$custom-light: #ca80d5;
$custom-dark: #000000;
JSON
{
  "hex": "#af45c2",
  "rgb": {
    "r": 175,
    "g": 69,
    "b": 194
  },
  "hsl": {
    "h": 290.88,
    "s": 50.607,
    "l": 51.569
  },
  "oklch": {
    "l": 0.58281,
    "c": 0.20393,
    "h": 321.3
  },
  "luminance": 0.17265
}

Semantic roles & 50–950 ramp

primary
#AF45C2
secondary
#9ECD96
accent
#DA4E63
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140B14
muted
#827C83

Preview Lab

Preview with #AF45C2

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

Preview Lab → · Contrast checker → · Palette generator →

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