#D242CB#D242CB

#D242CB is a light, highly saturated purple. Relative luminance 0.219; OKLCH L 63.3% C 0.232 H 330.0°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#D242CB
RGBrgb(210, 66, 203)
HSLhsl(303, 62%, 54%)
HSVhsv(303, 69%, 82%)
CMYKcmyk(0%, 68.6%, 3.3%, 17.6%)
CIE-LABlab(53.93, 71.07, -42.15)
CIE-LCHlch(53.93, 82.63, 329.33°)
OKLaboklab(63.33% 0.2011 -0.1162)
OKLCHoklch(63.33% 0.232 330)
XYZxyz(39.3058, 21.9128, 58.6477)
Luminance0.2191 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D242CB #42D249
analogous
#9142D2 #D242CB #D24283
triadic
#D242CB #CBD242 #42CBD2
tetradic
#D242CB #D29142 #42D249 #4283D2
square
#D242CB #D29142 #42D249 #4283D2
split-complementary
#D242CB #83D242 #42D291
monochromatic
#7C1E77 #AD29A7 #D242CB #DE73D9 #EAA5E6

Accessibility & contrast

On white

3.90
#D242CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#D242CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D242CB
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D242CB#FFFFFF#000000##000000
##D242CB1.003.905.385.38
#FFFFFF3.901.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3374CF
Deuteranopia (green-blind)
#6B88C7
Tritanopia (blue-blind)
#DA5482
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #d242cb;
/* rgb */ color: rgb(210, 66, 203);
/* oklch */ color: oklch(63.3% 0.232 330.0);
Tailwind
colors: {
  custom: {
    50: '#e482db',
    500: '#d242cb',
    950: '#000000',
  },
}
SCSS
$custom: #d242cb;
$custom-light: #e482db;
$custom-dark: #000000;
JSON
{
  "hex": "#d242cb",
  "rgb": {
    "r": 210,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 302.917,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.63334,
    "c": 0.23228,
    "h": 330
  },
  "luminance": 0.2191
}

Semantic roles & 50–950 ramp

primary
#D242CB
secondary
#99D79C
accent
#E54B43
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#160C15
muted
#847D83

Preview Lab

Preview with #D242CB

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

Preview Lab → · Contrast checker → · Palette generator →

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