#D240BC#D240BC

#D240BC is a light, highly saturated purple. Relative luminance 0.210; OKLCH L 62.4% C 0.224 H 334.6°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#D240BC
RGBrgb(210, 64, 188)
HSLhsl(309, 62%, 54%)
HSVhsv(309, 70%, 82%)
CMYKcmyk(0%, 69.5%, 10.5%, 17.6%)
CIE-LABlab(52.95, 69.48, -35.05)
CIE-LCHlch(52.95, 77.82, 333.23°)
OKLaboklab(62.39% 0.2021 -0.0958)
OKLCHoklch(62.39% 0.224 334.6)
XYZxyz(37.4892, 21.0025, 49.6466)
Luminance0.2100 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D240BC #40D256
analogous
#9F40D2 #D240BC #D24073
triadic
#D240BC #BCD240 #40BCD2
tetradic
#D240BC #D29F40 #40D256 #4073D2
square
#D240BC #D29F40 #40D256 #4073D2
split-complementary
#D240BC #73D240 #40D29F
monochromatic
#7B1D6D #AC2998 #D240BC #DE72CD #E9A3DF

Accessibility & contrast

On white

4.04
#D240BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#D240BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D240BC
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D240BC#FFFFFF#000000##000000
##D240BC1.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F71C0
Deuteranopia (green-blind)
#7186B8
Tritanopia (blue-blind)
#DC4C79
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #d240bc;
/* rgb */ color: rgb(210, 64, 188);
/* oklch */ color: oklch(62.4% 0.224 334.6);
Tailwind
colors: {
  custom: {
    50: '#e481d0',
    500: '#d240bc',
    950: '#000000',
  },
}
SCSS
$custom: #d240bc;
$custom-light: #e481d0;
$custom-dark: #000000;
JSON
{
  "hex": "#d240bc",
  "rgb": {
    "r": 210,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 309.041,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.62387,
    "c": 0.22365,
    "h": 334.6
  },
  "luminance": 0.20999
}

Semantic roles & 50–950 ramp

primary
#D240BC
secondary
#98D6A1
accent
#E55B43
background
#FEF8FC
surface
#FDF0F9
border
#D5CBD2
text
#160B14
muted
#847C82

Preview Lab

Preview with #D240BC

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

Preview Lab → · Contrast checker → · Palette generator →

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