#AF45D6#AF45D6

#AF45D6 is a mid, highly saturated purple. Relative luminance 0.182; OKLCH L 59.5% C 0.222 H 315.5°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#AF45D6
RGBrgb(175, 69, 214)
HSLhsl(284, 64%, 55%)
HSVhsv(284, 68%, 84%)
CMYKcmyk(18.2%, 67.8%, 0%, 16.1%)
CIE-LABlab(49.77, 64.14, -55.39)
CIE-LCHlch(49.77, 84.74, 319.19°)
OKLaboklab(59.5% 0.1584 -0.1557)
OKLCHoklch(59.5% 0.222 315.5)
XYZxyz(31.9430, 18.2264, 65.4407)
Luminance0.1822 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF45D6 #6CD645
analogous
#6645D6 #AF45D6 #D645B5
triadic
#AF45D6 #D6AF45 #45D6AF
tetradic
#AF45D6 #D66645 #6CD645 #45B5D6
square
#AF45D6 #D66645 #6CD645 #45B5D6
split-complementary
#AF45D6 #B5D645 #45D666
monochromatic
#681D84 #9028B6 #AF45D6 #C577E1 #DAA9EC

Accessibility & contrast

On white

4.52
#AF45D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#AF45D6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF45D6
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF45D6#FFFFFF#000000##000000
##AF45D61.004.524.644.64
#FFFFFF4.521.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0070DA
Deuteranopia (green-blind)
#4379D3
Tritanopia (blue-blind)
#AC6288
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #af45d6;
/* rgb */ color: rgb(175, 69, 214);
/* oklch */ color: oklch(59.5% 0.222 315.5);
Tailwind
colors: {
  custom: {
    50: '#cb81e3',
    500: '#af45d6',
    950: '#000000',
  },
}
SCSS
$custom: #af45d6;
$custom-light: #cb81e3;
$custom-dark: #000000;
JSON
{
  "hex": "#af45d6",
  "rgb": {
    "r": 175,
    "g": 69,
    "b": 214
  },
  "hsl": {
    "h": 283.862,
    "s": 63.877,
    "l": 55.49
  },
  "oklch": {
    "l": 0.59504,
    "c": 0.22217,
    "h": 315.5
  },
  "luminance": 0.18225
}

Semantic roles & 50–950 ramp

primary
#AF45D6
secondary
#ADDA9D
accent
#E7416E
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#140B15
muted
#827C84

Preview Lab

Preview with #AF45D6

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

Preview Lab → · Contrast checker → · Palette generator →

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