#AF45D8#AF45D8

#AF45D8 is a mid, highly saturated purple. Relative luminance 0.183; OKLCH L 59.6% C 0.224 H 315.0°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#AF45D8
RGBrgb(175, 69, 216)
HSLhsl(283, 65%, 56%)
HSVhsv(283, 68%, 85%)
CMYKcmyk(19%, 68.1%, 0%, 15.3%)
CIE-LABlab(49.89, 64.54, -56.33)
CIE-LCHlch(49.89, 85.66, 318.88°)
OKLaboklab(59.63% 0.1583 -0.1585)
OKLCHoklch(59.63% 0.224 315)
XYZxyz(32.2000, 18.3292, 66.7941)
Luminance0.1833 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF45D8 #6ED845
analogous
#6545D8 #AF45D8 #D845B7
triadic
#AF45D8 #D8AF45 #45D8AF
tetradic
#AF45D8 #D86545 #6ED845 #45B7D8
square
#AF45D8 #D86545 #6ED845 #45B7D8
split-complementary
#AF45D8 #B7D845 #45D865
monochromatic
#691C86 #9027B9 #AF45D8 #C578E3 #DBAAED

Accessibility & contrast

On white

4.50
#AF45D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.67
#AF45D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF45D8
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF45D8#FFFFFF#000000##000000
##AF45D81.004.504.674.67
#FFFFFF4.501.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0071DC
Deuteranopia (green-blind)
#4179D5
Tritanopia (blue-blind)
#AC6289
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #af45d8;
/* rgb */ color: rgb(175, 69, 216);
/* oklch */ color: oklch(59.6% 0.224 315.0);
Tailwind
colors: {
  custom: {
    50: '#cb81e5',
    500: '#af45d8',
    950: '#000000',
  },
}
SCSS
$custom: #af45d8;
$custom-light: #cb81e5;
$custom-dark: #000000;
JSON
{
  "hex": "#af45d8",
  "rgb": {
    "r": 175,
    "g": 69,
    "b": 216
  },
  "hsl": {
    "h": 283.265,
    "s": 65.333,
    "l": 55.882
  },
  "oklch": {
    "l": 0.59632,
    "c": 0.22402,
    "h": 315
  },
  "luminance": 0.18328
}

Semantic roles & 50–950 ramp

primary
#AF45D8
secondary
#AFDB9E
accent
#E8406F
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AF45D8

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

Preview Lab → · Contrast checker → · Palette generator →

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