#D240B3#D240B3

#D240B3 is a mid, highly saturated pink. Relative luminance 0.206; OKLCH L 62.0% C 0.217 H 337.7°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#D240B3
RGBrgb(210, 64, 179)
HSLhsl(313, 62%, 54%)
HSVhsv(313, 70%, 82%)
CMYKcmyk(0%, 69.5%, 14.8%, 17.6%)
CIE-LABlab(52.54, 68.17, -30.47)
CIE-LCHlch(52.54, 74.67, 335.92°)
OKLaboklab(61.95% 0.2011 -0.0827)
OKLCHoklch(61.95% 0.217 337.7)
XYZxyz(36.5491, 20.6264, 44.6955)
Luminance0.2062 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D240B3 #40D25F
analogous
#A840D2 #D240B3 #D2406A
triadic
#D240B3 #B3D240 #40B3D2
tetradic
#D240B3 #D2A840 #40D25F #406AD2
square
#D240B3 #D2A840 #40D25F #406AD2
split-complementary
#D240B3 #6AD240 #40D2A8
monochromatic
#7B1D67 #AC2990 #D240B3 #DE72C7 #E9A3DA

Accessibility & contrast

On white

4.10
#D240B3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#D240B3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D240B3
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D240B3#FFFFFF#000000##000000
##D240B31.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#456FB6
Deuteranopia (green-blind)
#7585AF
Tritanopia (blue-blind)
#DD4774
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #d240b3;
/* rgb */ color: rgb(210, 64, 179);
/* oklch */ color: oklch(62.0% 0.217 337.7);
Tailwind
colors: {
  custom: {
    50: '#e481ca',
    500: '#d240b3',
    950: '#000000',
  },
}
SCSS
$custom: #d240b3;
$custom-light: #e481ca;
$custom-dark: #000000;
JSON
{
  "hex": "#d240b3",
  "rgb": {
    "r": 210,
    "g": 64,
    "b": 179
  },
  "hsl": {
    "h": 312.74,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.61952,
    "c": 0.21743,
    "h": 337.7
  },
  "luminance": 0.20623
}

Semantic roles & 50–950 ramp

primary
#D240B3
secondary
#98D6A5
accent
#E56543
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #D240B3

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

Preview Lab → · Contrast checker → · Palette generator →

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