#AF45CF#AF45CF

#AF45CF is a mid, highly saturated purple. Relative luminance 0.179; OKLCH L 59.1% C 0.216 H 317.4°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#AF45CF
RGBrgb(175, 69, 207)
HSLhsl(286, 59%, 54%)
HSVhsv(286, 67%, 81%)
CMYKcmyk(15.5%, 66.7%, 0%, 18.8%)
CIE-LABlab(49.35, 62.76, -52.06)
CIE-LCHlch(49.35, 81.54, 320.33°)
OKLaboklab(59.06% 0.1588 -0.146)
OKLCHoklch(59.06% 0.216 317.4)
XYZxyz(31.0682, 17.8765, 60.8334)
Luminance0.1787 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF45CF #65CF45
analogous
#6A45CF #AF45CF #CF45AA
triadic
#AF45CF #CFAF45 #45CFAF
tetradic
#AF45CF #CF6A45 #65CF45 #45AACF
square
#AF45CF #CF6A45 #65CF45 #45AACF
split-complementary
#AF45CF #AACF45 #45CF6A
monochromatic
#65207A #8D2CAB #AF45CF #C476DC #D9A6E8

Accessibility & contrast

On white

4.59
#AF45CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#AF45CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AF45CF
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF45CF#FFFFFF#000000##FFFFFF
##AF45CF1.004.594.584.59
#FFFFFF4.591.0021.001.00
#0000004.5821.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FD3
Deuteranopia (green-blind)
#4979CC
Tritanopia (blue-blind)
#AE5F85
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #af45cf;
/* rgb */ color: rgb(175, 69, 207);
/* oklch */ color: oklch(59.1% 0.216 317.4);
Tailwind
colors: {
  custom: {
    50: '#ca80de',
    500: '#af45cf',
    950: '#000000',
  },
}
SCSS
$custom: #af45cf;
$custom-light: #ca80de;
$custom-dark: #000000;
JSON
{
  "hex": "#af45cf",
  "rgb": {
    "r": 175,
    "g": 69,
    "b": 207
  },
  "hsl": {
    "h": 286.087,
    "s": 58.974,
    "l": 54.118
  },
  "oklch": {
    "l": 0.59064,
    "c": 0.21574,
    "h": 317.4
  },
  "luminance": 0.17875
}

Semantic roles & 50–950 ramp

primary
#AF45CF
secondary
#A8D59B
accent
#E2466A
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF45CF

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

Preview Lab → · Contrast checker → · Palette generator →

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