#AF45CE#AF45CE

#AF45CE is a mid, highly saturated purple. Relative luminance 0.178; OKLCH L 59.0% C 0.215 H 317.7°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#AF45CE
RGBrgb(175, 69, 206)
HSLhsl(286, 58%, 54%)
HSVhsv(286, 67%, 81%)
CMYKcmyk(15%, 66.5%, 0%, 19.2%)
CIE-LABlab(49.29, 62.57, -51.58)
CIE-LCHlch(49.29, 81.09, 320.50°)
OKLaboklab(59% 0.1589 -0.1446)
OKLCHoklch(59% 0.215 317.7)
XYZxyz(30.9463, 17.8277, 60.1915)
Luminance0.1783 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF45CE #64CE45
analogous
#6B45CE #AF45CE #CE45A9
triadic
#AF45CE #CEAF45 #45CEAF
tetradic
#AF45CE #CE6B45 #64CE45 #45A9CE
square
#AF45CE #CE6B45 #64CE45 #45A9CE
split-complementary
#AF45CE #A9CE45 #45CE6B
monochromatic
#652079 #8D2DA9 #AF45CE #C475DB #D9A6E8

Accessibility & contrast

On white

4.60
#AF45CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#AF45CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AF45CE
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF45CE#FFFFFF#000000##FFFFFF
##AF45CE1.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#056ED2
Deuteranopia (green-blind)
#4A78CB
Tritanopia (blue-blind)
#AE5E84
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #af45ce;
/* rgb */ color: rgb(175, 69, 206);
/* oklch */ color: oklch(59.0% 0.215 317.7);
Tailwind
colors: {
  custom: {
    50: '#ca80de',
    500: '#af45ce',
    950: '#000000',
  },
}
SCSS
$custom: #af45ce;
$custom-light: #ca80de;
$custom-dark: #000000;
JSON
{
  "hex": "#af45ce",
  "rgb": {
    "r": 175,
    "g": 69,
    "b": 206
  },
  "hsl": {
    "h": 286.423,
    "s": 58.298,
    "l": 53.922
  },
  "oklch": {
    "l": 0.59003,
    "c": 0.21482,
    "h": 317.7
  },
  "luminance": 0.17826
}

Semantic roles & 50–950 ramp

primary
#AF45CE
secondary
#A7D59A
accent
#E24669
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF45CE

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

Preview Lab → · Contrast checker → · Palette generator →

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