#D151C2#D151C2

#D151C2 is a light, highly saturated purple. Relative luminance 0.233; OKLCH L 64.2% C 0.206 H 332.6°. Best body text is #000000 at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#D151C2
RGBrgb(209, 81, 194)
HSLhsl(307, 58%, 57%)
HSVhsv(307, 61%, 82%)
CMYKcmyk(0%, 61.2%, 7.2%, 18%)
CIE-LABlab(55.42, 63.62, -34.66)
CIE-LCHlch(55.42, 72.46, 331.42°)
OKLaboklab(64.24% 0.1826 -0.0948)
OKLCHoklch(64.24% 0.206 332.6)
XYZxyz(38.9746, 23.3381, 53.4804)
Luminance0.2334 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D151C2 #51D160
analogous
#A051D1 #D151C2 #D15182
triadic
#D151C2 #C2D151 #51C2D1
tetradic
#D151C2 #D1A051 #51D160 #5182D1
square
#D151C2 #D1A051 #51D160 #5182D1
split-complementary
#D151C2 #82D151 #51D1A0
monochromatic
#852379 #B530A5 #D151C2 #DE81D3 #EBB2E4

Accessibility & contrast

On white

3.71
#D151C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.67
#D151C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D151C2
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D151C2#FFFFFF#000000##000000
##D151C21.003.715.675.67
#FFFFFF3.711.0021.0021.00
#0000005.6721.001.001.00
##0000005.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C79C5
Deuteranopia (green-blind)
#768BBF
Tritanopia (blue-blind)
#DA5C82
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #d151c2;
/* rgb */ color: rgb(209, 81, 194);
/* oklch */ color: oklch(64.2% 0.206 332.6);
Tailwind
colors: {
  custom: {
    50: '#e28ad5',
    500: '#d151c2',
    950: '#000000',
  },
}
SCSS
$custom: #d151c2;
$custom-light: #e28ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#d151c2",
  "rgb": {
    "r": 209,
    "g": 81,
    "b": 194
  },
  "hsl": {
    "h": 307.031,
    "s": 58.182,
    "l": 56.863
  },
  "oklch": {
    "l": 0.64239,
    "c": 0.20578,
    "h": 332.6
  },
  "luminance": 0.23335
}

Semantic roles & 50–950 ramp

primary
#D151C2
secondary
#A5D9AB
accent
#E15946
background
#FEF8FD
surface
#FCF0FA
border
#D5CBD3
text
#160C14
muted
#847D83

Preview Lab

Preview with #D151C2

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

Preview Lab → · Contrast checker → · Palette generator →

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