#D240BF#D240BF

#D240BF is a light, highly saturated purple. Relative luminance 0.211; OKLCH L 62.5% C 0.226 H 333.7°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#D240BF
RGBrgb(210, 64, 191)
HSLhsl(308, 62%, 54%)
HSVhsv(308, 70%, 82%)
CMYKcmyk(0%, 69.5%, 9%, 17.6%)
CIE-LABlab(53.09, 69.92, -36.57)
CIE-LCHlch(53.09, 78.91, 332.39°)
OKLaboklab(62.54% 0.2024 -0.1001)
OKLCHoklch(62.54% 0.226 333.7)
XYZxyz(37.8160, 21.1332, 51.3675)
Luminance0.2113 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D240BF #40D253
analogous
#9C40D2 #D240BF #D24076
triadic
#D240BF #BFD240 #40BFD2
tetradic
#D240BF #D29C40 #40D253 #4076D2
square
#D240BF #D29C40 #40D253 #4076D2
split-complementary
#D240BF #76D240 #40D29C
monochromatic
#7B1D6E #AC299B #D240BF #DE72D0 #E9A3E0

Accessibility & contrast

On white

4.02
#D240BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#D240BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D240BF
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D240BF#FFFFFF#000000##000000
##D240BF1.004.025.235.23
#FFFFFF4.021.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C71C3
Deuteranopia (green-blind)
#7086BB
Tritanopia (blue-blind)
#DC4D7B
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #d240bf;
/* rgb */ color: rgb(210, 64, 191);
/* oklch */ color: oklch(62.5% 0.226 333.7);
Tailwind
colors: {
  custom: {
    50: '#e481d2',
    500: '#d240bf',
    950: '#000000',
  },
}
SCSS
$custom: #d240bf;
$custom-light: #e481d2;
$custom-dark: #000000;
JSON
{
  "hex": "#d240bf",
  "rgb": {
    "r": 210,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 307.808,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.62536,
    "c": 0.22578,
    "h": 333.7
  },
  "luminance": 0.2113
}

Semantic roles & 50–950 ramp

primary
#D240BF
secondary
#98D6A0
accent
#E55843
background
#FEF8FC
surface
#FDF0F9
border
#D5CBD2
text
#160B14
muted
#847C82

Preview Lab

Preview with #D240BF

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

Preview Lab → · Contrast checker → · Palette generator →

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