#D340BF#D340BF

#D340BF is a light, highly saturated purple. Relative luminance 0.213; OKLCH L 62.7% C 0.226 H 334.0°. Best body text is #000000 at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#D340BF
RGBrgb(211, 64, 191)
HSLhsl(308, 63%, 54%)
HSVhsv(308, 70%, 83%)
CMYKcmyk(0%, 69.7%, 9.5%, 17.3%)
CIE-LABlab(53.26, 70.16, -36.30)
CIE-LCHlch(53.26, 78.99, 332.64°)
OKLaboklab(62.68% 0.2034 -0.0993)
OKLCHoklch(62.68% 0.226 334)
XYZxyz(38.1016, 21.2805, 51.3809)
Luminance0.2128 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D340BF #40D354
analogous
#9E40D3 #D340BF #D34076
triadic
#D340BF #BFD340 #40BFD3
tetradic
#D340BF #D39E40 #40D354 #4076D3
square
#D340BF #D39E40 #40D354 #4076D3
split-complementary
#D340BF #76D340 #40D39E
monochromatic
#7C1D6F #AE289C #D340BF #DE72D0 #EAA3E0

Accessibility & contrast

On white

4.00
#D340BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.26
#D340BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D340BF
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D340BF#FFFFFF#000000##000000
##D340BF1.004.005.265.26
#FFFFFF4.001.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D71C3
Deuteranopia (green-blind)
#7187BB
Tritanopia (blue-blind)
#DD4D7B
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #d340bf;
/* rgb */ color: rgb(211, 64, 191);
/* oklch */ color: oklch(62.7% 0.226 334.0);
Tailwind
colors: {
  custom: {
    50: '#e481d2',
    500: '#d340bf',
    950: '#000000',
  },
}
SCSS
$custom: #d340bf;
$custom-light: #e481d2;
$custom-dark: #000000;
JSON
{
  "hex": "#d340bf",
  "rgb": {
    "r": 211,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 308.163,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.62683,
    "c": 0.22633,
    "h": 334
  },
  "luminance": 0.21277
}

Semantic roles & 50–950 ramp

primary
#D340BF
secondary
#98D7A1
accent
#E65842
background
#FEF8FC
surface
#FDF0F9
border
#D5CBD2
text
#160B14
muted
#847C82

Preview Lab

Preview with #D340BF

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

Preview Lab → · Contrast checker → · Palette generator →

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