#D042BF#D042BF

#D042BF is a light, highly saturated purple. Relative luminance 0.211; OKLCH L 62.4% C 0.222 H 333.1°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#D042BF
RGBrgb(208, 66, 191)
HSLhsl(307, 60%, 54%)
HSVhsv(307, 68%, 82%)
CMYKcmyk(0%, 68.3%, 8.2%, 18.4%)
CIE-LABlab(53.03, 68.75, -36.69)
CIE-LCHlch(53.03, 77.93, 331.91°)
OKLaboklab(62.43% 0.1983 -0.1005)
OKLCHoklch(62.43% 0.222 333.1)
XYZxyz(37.3648, 21.0709, 51.3793)
Luminance0.2107 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D042BF #42D053
analogous
#9A42D0 #D042BF #D04278
triadic
#D042BF #BFD042 #42BFD0
tetradic
#D042BF #D09A42 #42D053 #4278D0
square
#D042BF #D09A42 #42D053 #4278D0
split-complementary
#D042BF #78D042 #42D09A
monochromatic
#791E6E #AA2A9B #D042BF #DC73D0 #E8A4E0

Accessibility & contrast

On white

4.03
#D042BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#D042BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D042BF
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D042BF#FFFFFF#000000##000000
##D042BF1.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D72C3
Deuteranopia (green-blind)
#6F86BB
Tritanopia (blue-blind)
#D94F7B
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #d042bf;
/* rgb */ color: rgb(208, 66, 191);
/* oklch */ color: oklch(62.4% 0.222 333.1);
Tailwind
colors: {
  custom: {
    50: '#e282d2',
    500: '#d042bf',
    950: '#000000',
  },
}
SCSS
$custom: #d042bf;
$custom-light: #e282d2;
$custom-dark: #000000;
JSON
{
  "hex": "#d042bf",
  "rgb": {
    "r": 208,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 307.183,
    "s": 60.169,
    "l": 53.725
  },
  "oklch": {
    "l": 0.62426,
    "c": 0.22232,
    "h": 333.1
  },
  "luminance": 0.21068
}

Semantic roles & 50–950 ramp

primary
#D042BF
secondary
#99D5A0
accent
#E35744
background
#FEF8FC
surface
#FDF0F9
border
#D5CBD2
text
#160B14
muted
#847C82

Preview Lab

Preview with #D042BF

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

Preview Lab → · Contrast checker → · Palette generator →

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