#D151B2#D151B2

#D151B2 is a light, vivid pink. Relative luminance 0.227; OKLCH L 63.5% C 0.194 H 338.3°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#D151B2
RGBrgb(209, 81, 178)
HSLhsl(315, 58%, 57%)
HSVhsv(315, 61%, 82%)
CMYKcmyk(0%, 61.2%, 14.8%, 18%)
CIE-LABlab(54.72, 61.16, -26.52)
CIE-LCHlch(54.72, 66.66, 336.56°)
OKLaboklab(63.5% 0.1802 -0.0716)
OKLCHoklch(63.5% 0.194 338.3)
XYZxyz(37.2734, 22.6577, 44.5211)
Luminance0.2266 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D151B2 #51D170
analogous
#B051D1 #D151B2 #D15172
triadic
#D151B2 #B2D151 #51B2D1
tetradic
#D151B2 #D1B051 #51D170 #5172D1
square
#D151B2 #D1B051 #51D170 #5172D1
split-complementary
#D151B2 #72D151 #51D1B0
monochromatic
#85236D #B53095 #D151B2 #DE81C7 #EBB2DD

Accessibility & contrast

On white

3.80
#D151B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#D151B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D151B2
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D151B2#FFFFFF#000000##000000
##D151B21.003.805.535.53
#FFFFFF3.801.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5676B5
Deuteranopia (green-blind)
#7D8AAF
Tritanopia (blue-blind)
#DC567A
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #d151b2;
/* rgb */ color: rgb(209, 81, 178);
/* oklch */ color: oklch(63.5% 0.194 338.3);
Tailwind
colors: {
  custom: {
    50: '#e289c9',
    500: '#d151b2',
    950: '#000000',
  },
}
SCSS
$custom: #d151b2;
$custom-light: #e289c9;
$custom-dark: #000000;
JSON
{
  "hex": "#d151b2",
  "rgb": {
    "r": 209,
    "g": 81,
    "b": 178
  },
  "hsl": {
    "h": 314.531,
    "s": 58.182,
    "l": 56.863
  },
  "oklch": {
    "l": 0.63497,
    "c": 0.19393,
    "h": 338.3
  },
  "luminance": 0.22655
}

Semantic roles & 50–950 ramp

primary
#D151B2
secondary
#A5D9B1
accent
#E16C46
background
#FEF8FC
surface
#FCF0F8
border
#D5CBD1
text
#160C13
muted
#847D82

Preview Lab

Preview with #D151B2

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

Preview Lab → · Contrast checker → · Palette generator →

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