#D331BF#D331BF

#D331BF is a mid, highly saturated purple. Relative luminance 0.198; OKLCH L 61.5% C 0.242 H 333.8°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#D331BF
RGBrgb(211, 49, 191)
HSLhsl(307, 65%, 51%)
HSVhsv(307, 77%, 83%)
CMYKcmyk(0%, 76.8%, 9.5%, 17.3%)
CIE-LABlab(51.62, 74.81, -38.87)
CIE-LCHlch(51.62, 84.31, 332.54°)
OKLaboklab(61.51% 0.2171 -0.1066)
OKLCHoklch(61.51% 0.242 333.8)
XYZxyz(37.3666, 19.8104, 51.1359)
Luminance0.1981 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D331BF #31D345
analogous
#9631D3 #D331BF #D3316E
triadic
#D331BF #BFD331 #31BFD3
tetradic
#D331BF #D39631 #31D345 #316ED3
square
#D331BF #D39631 #31D345 #316ED3
split-complementary
#D331BF #6ED331 #31D396
monochromatic
#711866 #A42394 #D331BF #DE63CF #E996DE

Accessibility & contrast

On white

4.23
#D331BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#D331BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D331BF
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D331BF#FFFFFF#000000##000000
##D331BF1.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C6CC3
Deuteranopia (green-blind)
#6B83BB
Tritanopia (blue-blind)
#DD4276
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #d331bf;
/* rgb */ color: rgb(211, 49, 191);
/* oklch */ color: oklch(61.5% 0.242 333.8);
Tailwind
colors: {
  custom: {
    50: '#e57bd3',
    500: '#d331bf',
    950: '#000000',
  },
}
SCSS
$custom: #d331bf;
$custom-light: #e57bd3;
$custom-dark: #000000;
JSON
{
  "hex": "#d331bf",
  "rgb": {
    "r": 211,
    "g": 49,
    "b": 191
  },
  "hsl": {
    "h": 307.407,
    "s": 64.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.61508,
    "c": 0.24182,
    "h": 333.8
  },
  "luminance": 0.19807
}

Semantic roles & 50–950 ramp

primary
#D331BF
secondary
#8CD495
accent
#E85540
background
#FEF8FD
surface
#FDEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #D331BF

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

Preview Lab → · Contrast checker → · Palette generator →

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