#D945C2#D945C2

#D945C2 is a light, highly saturated purple. Relative luminance 0.229; OKLCH L 64.2% C 0.226 H 334.8°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#D945C2
RGBrgb(217, 69, 194)
HSLhsl(309, 66%, 56%)
HSVhsv(309, 68%, 85%)
CMYKcmyk(0%, 68.2%, 10.6%, 14.9%)
CIE-LABlab(54.98, 70.26, -35.27)
CIE-LCHlch(54.98, 78.62, 333.35°)
OKLaboklab(64.16% 0.2045 -0.0963)
OKLCHoklch(64.16% 0.226 334.8)
XYZxyz(40.4814, 22.9064, 53.3178)
Luminance0.2290 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D945C2 #45D95C
analogous
#A645D9 #D945C2 #D94578
triadic
#D945C2 #C2D945 #45C2D9
tetradic
#D945C2 #D9A645 #45D95C #4578D9
square
#D945C2 #D9A645 #45D95C #4578D9
split-complementary
#D945C2 #78D945 #45D9A6
monochromatic
#881C77 #BB26A4 #D945C2 #E378D3 #EEABE3

Accessibility & contrast

On white

3.76
#D945C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#D945C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D945C2
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D945C2#FFFFFF#000000##000000
##D945C21.003.765.585.58
#FFFFFF3.761.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4476C6
Deuteranopia (green-blind)
#778BBE
Tritanopia (blue-blind)
#E3507E
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #d945c2;
/* rgb */ color: rgb(217, 69, 194);
/* oklch */ color: oklch(64.2% 0.226 334.8);
Tailwind
colors: {
  custom: {
    50: '#e884d5',
    500: '#d945c2',
    950: '#000000',
  },
}
SCSS
$custom: #d945c2;
$custom-light: #e884d5;
$custom-dark: #000000;
JSON
{
  "hex": "#d945c2",
  "rgb": {
    "r": 217,
    "g": 69,
    "b": 194
  },
  "hsl": {
    "h": 309.324,
    "s": 66.071,
    "l": 56.078
  },
  "oklch": {
    "l": 0.64158,
    "c": 0.226,
    "h": 334.8
  },
  "luminance": 0.22903
}

Semantic roles & 50–950 ramp

primary
#D945C2
secondary
#9EDBA8
accent
#E9593F
background
#FEF8FD
surface
#FDF0FA
border
#D5CBD3
text
#170C14
muted
#857D83

Preview Lab

Preview with #D945C2

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

Preview Lab → · Contrast checker → · Palette generator →

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