#CD45F2#CD45F2

#CD45F2 is a light, highly saturated purple. Relative luminance 0.236; OKLCH L 65.2% C 0.258 H 318.0°. Best body text is #000000 at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#CD45F2
RGBrgb(205, 69, 242)
HSLhsl(287, 87%, 61%)
HSVhsv(287, 71%, 95%)
CMYKcmyk(15.3%, 71.5%, 0%, 5.1%)
CIE-LABlab(55.73, 75.62, -61.39)
CIE-LCHlch(55.73, 97.40, 320.93°)
OKLaboklab(65.17% 0.1918 -0.1724)
OKLCHoklch(65.17% 0.258 318)
XYZxyz(43.3297, 23.6481, 86.2694)
Luminance0.2365 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD45F2 #6AF245
analogous
#7645F2 #CD45F2 #F245C0
triadic
#CD45F2 #F2CD45 #45F2CD
tetradic
#CD45F2 #F27645 #6AF245 #45C0F2
square
#CD45F2 #F27645 #6AF245 #45C0F2
split-complementary
#CD45F2 #C0F245 #45F276
monochromatic
#8D0CB0 #BB10E9 #CD45F2 #DC7EF6 #ECB7FA

Accessibility & contrast

On white

3.67
#CD45F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.73
#CD45F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD45F2
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD45F2#FFFFFF#000000##000000
##CD45F21.003.675.735.73
#FFFFFF3.671.0021.0021.00
#0000005.7321.001.001.00
##0000005.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF7
Deuteranopia (green-blind)
#4C8AEE
Tritanopia (blue-blind)
#CC6898
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #cd45f2;
/* rgb */ color: rgb(205, 69, 242);
/* oklch */ color: oklch(65.2% 0.258 318.0);
Tailwind
colors: {
  custom: {
    50: '#e185f7',
    500: '#cd45f2',
    950: '#000000',
  },
}
SCSS
$custom: #cd45f2;
$custom-light: #e185f7;
$custom-dark: #000000;
JSON
{
  "hex": "#cd45f2",
  "rgb": {
    "r": 205,
    "g": 69,
    "b": 242
  },
  "hsl": {
    "h": 287.168,
    "s": 86.935,
    "l": 60.98
  },
  "oklch": {
    "l": 0.65174,
    "c": 0.25789,
    "h": 318
  },
  "luminance": 0.23646
}

Semantic roles & 50–950 ramp

primary
#CD45F2
secondary
#B7EAA9
accent
#E30232
background
#FEF8FF
surface
#FDF0FF
border
#D5CBD7
text
#160C17
muted
#847D85

Preview Lab

Preview with #CD45F2

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

Preview Lab → · Contrast checker → · Palette generator →

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