#D340B1#D340B1

#D340B1 is a light, highly saturated pink. Relative luminance 0.207; OKLCH L 62.0% C 0.217 H 338.6°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#D340B1
RGBrgb(211, 64, 177)
HSLhsl(314, 63%, 54%)
HSVhsv(314, 70%, 83%)
CMYKcmyk(0%, 69.7%, 16.1%, 17.3%)
CIE-LABlab(52.61, 68.13, -29.17)
CIE-LCHlch(52.61, 74.12, 336.82°)
OKLaboklab(62.01% 0.2018 -0.079)
OKLCHoklch(62.01% 0.217 338.6)
XYZxyz(36.6340, 20.6934, 43.6513)
Luminance0.2069 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D340B1 #40D362
analogous
#AC40D3 #D340B1 #D34068
triadic
#D340B1 #B1D340 #40B1D3
tetradic
#D340B1 #D3AC40 #40D362 #4068D3
square
#D340B1 #D3AC40 #40D362 #4068D3
split-complementary
#D340B1 #68D340 #40D3AC
monochromatic
#7C1D66 #AE288F #D340B1 #DE72C5 #EAA3DA

Accessibility & contrast

On white

4.09
#D340B1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#D340B1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D340B1
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D340B1#FFFFFF#000000##000000
##D340B11.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#476FB4
Deuteranopia (green-blind)
#7786AD
Tritanopia (blue-blind)
#DF4673
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #d340b1;
/* rgb */ color: rgb(211, 64, 177);
/* oklch */ color: oklch(62.0% 0.217 338.6);
Tailwind
colors: {
  custom: {
    50: '#e481c8',
    500: '#d340b1',
    950: '#000000',
  },
}
SCSS
$custom: #d340b1;
$custom-light: #e481c8;
$custom-dark: #000000;
JSON
{
  "hex": "#d340b1",
  "rgb": {
    "r": 211,
    "g": 64,
    "b": 177
  },
  "hsl": {
    "h": 313.878,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.62008,
    "c": 0.21671,
    "h": 338.6
  },
  "luminance": 0.2069
}

Semantic roles & 50–950 ramp

primary
#D340B1
secondary
#98D7A7
accent
#E66842
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #D340B1

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

Preview Lab → · Contrast checker → · Palette generator →

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