#CD54F2#CD54F2

#CD54F2 is a light, highly saturated purple. Relative luminance 0.257; OKLCH L 66.6% C 0.240 H 317.3°. Best body text is #000000 at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#CD54F2
RGBrgb(205, 84, 242)
HSLhsl(286, 86%, 64%)
HSVhsv(286, 65%, 95%)
CMYKcmyk(15.3%, 65.3%, 0%, 5.1%)
CIE-LABlab(57.78, 69.85, -58.10)
CIE-LCHlch(57.78, 90.86, 320.24°)
OKLaboklab(66.64% 0.1767 -0.1629)
OKLCHoklch(66.64% 0.24 317.3)
XYZxyz(44.3719, 25.7324, 86.6167)
Luminance0.2573 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD54F2 #79F254
analogous
#7E54F2 #CD54F2 #F254C8
triadic
#CD54F2 #F2CD54 #54F2CD
tetradic
#CD54F2 #F27E54 #79F254 #54C8F2
square
#CD54F2 #F27E54 #79F254 #54C8F2
split-complementary
#CD54F2 #C8F254 #54F27E
monochromatic
#940EBD #BC1BEE #CD54F2 #DE8DF6 #EEC6FB

Accessibility & contrast

On white

3.42
#CD54F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.15
#CD54F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD54F2
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD54F2#FFFFFF#000000##000000
##CD54F21.003.426.156.15
#FFFFFF3.421.0021.0021.00
#0000006.1521.001.001.00
##0000006.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0E83F7
Deuteranopia (green-blind)
#588FEE
Tritanopia (blue-blind)
#CC719C
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #cd54f2;
/* rgb */ color: rgb(205, 84, 242);
/* oklch */ color: oklch(66.6% 0.240 317.3);
Tailwind
colors: {
  custom: {
    50: '#e08cf7',
    500: '#cd54f2',
    950: '#000000',
  },
}
SCSS
$custom: #cd54f2;
$custom-light: #e08cf7;
$custom-dark: #000000;
JSON
{
  "hex": "#cd54f2",
  "rgb": {
    "r": 205,
    "g": 84,
    "b": 242
  },
  "hsl": {
    "h": 285.949,
    "s": 85.87,
    "l": 63.922
  },
  "oklch": {
    "l": 0.66639,
    "c": 0.24037,
    "h": 317.3
  },
  "luminance": 0.25731
}

Semantic roles & 50–950 ramp

primary
#CD54F2
secondary
#C2EDB5
accent
#E20337
background
#FEF9FF
surface
#FCF1FF
border
#D5CBD7
text
#160D17
muted
#847E85

Preview Lab

Preview with #CD54F2

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

Preview Lab → · Contrast checker → · Palette generator →

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