#AF45D5#AF45D5

#AF45D5 is a mid, highly saturated purple. Relative luminance 0.182; OKLCH L 59.4% C 0.221 H 315.8°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#AF45D5
RGBrgb(175, 69, 213)
HSLhsl(284, 63%, 55%)
HSVhsv(284, 68%, 84%)
CMYKcmyk(17.8%, 67.6%, 0%, 16.5%)
CIE-LABlab(49.71, 63.94, -54.91)
CIE-LCHlch(49.71, 84.28, 319.34°)
OKLaboklab(59.44% 0.1585 -0.1544)
OKLCHoklch(59.44% 0.221 315.8)
XYZxyz(31.8157, 18.1755, 64.7702)
Luminance0.1817 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF45D5 #6BD545
analogous
#6745D5 #AF45D5 #D545B3
triadic
#AF45D5 #D5AF45 #45D5AF
tetradic
#AF45D5 #D56745 #6BD545 #45B3D5
square
#AF45D5 #D56745 #6BD545 #45B3D5
split-complementary
#AF45D5 #B3D545 #45D567
monochromatic
#681D82 #8F29B4 #AF45D5 #C477E0 #DAA9EC

Accessibility & contrast

On white

4.53
#AF45D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#AF45D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF45D5
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF45D5#FFFFFF#000000##000000
##AF45D51.004.534.634.63
#FFFFFF4.531.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0070D9
Deuteranopia (green-blind)
#4479D2
Tritanopia (blue-blind)
#AC6188
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #af45d5;
/* rgb */ color: rgb(175, 69, 213);
/* oklch */ color: oklch(59.4% 0.221 315.8);
Tailwind
colors: {
  custom: {
    50: '#cb81e3',
    500: '#af45d5',
    950: '#000000',
  },
}
SCSS
$custom: #af45d5;
$custom-light: #cb81e3;
$custom-dark: #000000;
JSON
{
  "hex": "#af45d5",
  "rgb": {
    "r": 175,
    "g": 69,
    "b": 213
  },
  "hsl": {
    "h": 284.167,
    "s": 63.158,
    "l": 55.294
  },
  "oklch": {
    "l": 0.5944,
    "c": 0.22125,
    "h": 315.8
  },
  "luminance": 0.18174
}

Semantic roles & 50–950 ramp

primary
#AF45D5
secondary
#ADD99D
accent
#E6426D
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#140B15
muted
#827C84

Preview Lab

Preview with #AF45D5

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

Preview Lab → · Contrast checker → · Palette generator →

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