#D151C7#D151C7

#D151C7 is a light, highly saturated purple. Relative luminance 0.236; OKLCH L 64.5% C 0.210 H 330.9°. Best body text is #000000 at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#D151C7
RGBrgb(209, 81, 199)
HSLhsl(305, 58%, 57%)
HSVhsv(305, 61%, 82%)
CMYKcmyk(0%, 61.2%, 4.8%, 18%)
CIE-LABlab(55.65, 64.43, -37.17)
CIE-LCHlch(55.65, 74.38, 330.02°)
OKLaboklab(64.48% 0.1832 -0.102)
OKLCHoklch(64.48% 0.21 330.9)
XYZxyz(39.5456, 23.5665, 56.4877)
Luminance0.2356 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D151C7 #51D15B
analogous
#9B51D1 #D151C7 #D15187
triadic
#D151C7 #C7D151 #51C7D1
tetradic
#D151C7 #D19B51 #51D15B #5187D1
square
#D151C7 #D19B51 #51D15B #5187D1
split-complementary
#D151C7 #87D151 #51D19B
monochromatic
#85237D #B530AB #D151C7 #DE81D7 #EBB2E6

Accessibility & contrast

On white

3.68
#D151C7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.71
#D151C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D151C7
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D151C7#FFFFFF#000000##000000
##D151C71.003.685.715.71
#FFFFFF3.681.0021.0021.00
#0000005.7121.001.001.00
##0000005.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#497ACB
Deuteranopia (green-blind)
#748CC4
Tritanopia (blue-blind)
#D95E85
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #d151c7;
/* rgb */ color: rgb(209, 81, 199);
/* oklch */ color: oklch(64.5% 0.210 330.9);
Tailwind
colors: {
  custom: {
    50: '#e28ad8',
    500: '#d151c7',
    950: '#000000',
  },
}
SCSS
$custom: #d151c7;
$custom-light: #e28ad8;
$custom-dark: #000000;
JSON
{
  "hex": "#d151c7",
  "rgb": {
    "r": 209,
    "g": 81,
    "b": 199
  },
  "hsl": {
    "h": 304.688,
    "s": 58.182,
    "l": 56.863
  },
  "oklch": {
    "l": 0.64484,
    "c": 0.20968,
    "h": 330.9
  },
  "luminance": 0.23564
}

Semantic roles & 50–950 ramp

primary
#D151C7
secondary
#A5D9A9
accent
#E15346
background
#FEF8FD
surface
#FCF0FA
border
#D5CBD3
text
#160C14
muted
#847D83

Preview Lab

Preview with #D151C7

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

Preview Lab → · Contrast checker → · Palette generator →

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