#D381F2#D381F2

#D381F2 is a light, vivid purple. Relative luminance 0.360; OKLCH L 73.2% C 0.177 H 316.2°. Best body text is #000000 at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#D381F2
RGBrgb(211, 129, 242)
HSLhsl(284, 81%, 73%)
HSVhsv(284, 47%, 95%)
CMYKcmyk(12.8%, 46.7%, 0%, 5.1%)
CIE-LABlab(66.49, 50.04, -44.25)
CIE-LCHlch(66.49, 66.80, 318.51°)
OKLaboklab(73.18% 0.1278 -0.1227)
OKLCHoklch(73.18% 0.177 316.2)
XYZxyz(50.7388, 35.9617, 88.2557)
Luminance0.3596 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D381F2 #A0F281
analogous
#9A81F2 #D381F2 #F281D8
triadic
#D381F2 #F2D381 #81F2D3
tetradic
#D381F2 #F29A81 #A0F281 #81D8F2
square
#D381F2 #F29A81 #A0F281 #81D8F2
split-complementary
#D381F2 #D8F281 #81F29A
monochromatic
#AA17E1 #C04AEC #D381F2 #E6B8F8 #F5E3FC

Accessibility & contrast

On white

2.56
#D381F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.19
#D381F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D381F2
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D381F2#FFFFFF#000000##000000
##D381F21.002.568.198.19
#FFFFFF2.561.0021.0021.00
#0000008.1921.001.001.00
##0000008.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B9DF6
Deuteranopia (green-blind)
#83A4EF
Tritanopia (blue-blind)
#D291AE
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #d381f2;
/* rgb */ color: rgb(211, 129, 242);
/* oklch */ color: oklch(73.2% 0.177 316.2);
Tailwind
colors: {
  custom: {
    50: '#e2a8f7',
    500: '#d381f2',
    950: '#000000',
  },
}
SCSS
$custom: #d381f2;
$custom-light: #e2a8f7;
$custom-dark: #000000;
JSON
{
  "hex": "#d381f2",
  "rgb": {
    "r": 211,
    "g": 129,
    "b": 242
  },
  "hsl": {
    "h": 283.54,
    "s": 81.295,
    "l": 72.745
  },
  "oklch": {
    "l": 0.73176,
    "c": 0.17717,
    "h": 316.2
  },
  "luminance": 0.3596
}

Semantic roles & 50–950 ramp

primary
#D381F2
secondary
#DFF4D7
accent
#DE0842
background
#FEFAFF
surface
#FCF4FE
border
#D5CED6
text
#161017
muted
#847F85

Preview Lab

Preview with #D381F2

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

Preview Lab → · Contrast checker → · Palette generator →

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