#AE42CB#AE42CB

#AE42CB is a mid, highly saturated purple. Relative luminance 0.172; OKLCH L 58.4% C 0.215 H 318.4°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#AE42CB
RGBrgb(174, 66, 203)
HSLhsl(287, 57%, 53%)
HSVhsv(287, 67%, 80%)
CMYKcmyk(14.3%, 67.5%, 0%, 20.4%)
CIE-LABlab(48.52, 63.01, -51.09)
CIE-LCHlch(48.52, 81.12, 320.97°)
OKLaboklab(58.37% 0.161 -0.1432)
OKLCHoklch(58.37% 0.215 318.4)
XYZxyz(30.1818, 17.2082, 58.2200)
Luminance0.1721 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AE42CB #5FCB42
analogous
#6942CB #AE42CB #CB42A4
triadic
#AE42CB #CBAE42 #42CBAE
tetradic
#AE42CB #CB6942 #5FCB42 #42A4CB
square
#AE42CB #CB6942 #5FCB42 #42A4CB
split-complementary
#AE42CB #A4CB42 #42CB69
monochromatic
#612073 #8A2DA3 #AE42CB #C372D8 #D7A2E5

Accessibility & contrast

On white

4.73
#AE42CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#AE42CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AE42CB
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AE42CB#FFFFFF#000000##FFFFFF
##AE42CB1.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CCF
Deuteranopia (green-blind)
#4977C8
Tritanopia (blue-blind)
#AD5B81
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ae42cb;
/* rgb */ color: rgb(174, 66, 203);
/* oklch */ color: oklch(58.4% 0.215 318.4);
Tailwind
colors: {
  custom: {
    50: '#ca7fdb',
    500: '#ae42cb',
    950: '#000000',
  },
}
SCSS
$custom: #ae42cb;
$custom-light: #ca7fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#ae42cb",
  "rgb": {
    "r": 174,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 287.299,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.58367,
    "c": 0.21549,
    "h": 318.4
  },
  "luminance": 0.17207
}

Semantic roles & 50–950 ramp

primary
#AE42CB
secondary
#A3D297
accent
#E04868
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AE42CB

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

Preview Lab → · Contrast checker → · Palette generator →

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