#D387FC#D387FC

#D387FC is a light, vivid violet. Relative luminance 0.382; OKLCH L 74.6% C 0.178 H 312.7°. Best body text is #000000 at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#D387FC
RGBrgb(211, 135, 252)
HSLhsl(279, 95%, 76%)
HSVhsv(279, 46%, 99%)
CMYKcmyk(16.3%, 46.4%, 0%, 1.2%)
CIE-LABlab(68.17, 48.98, -47.09)
CIE-LCHlch(68.17, 67.94, 316.13°)
OKLaboklab(74.58% 0.121 -0.131)
OKLCHoklch(74.58% 0.178 312.7)
XYZxyz(53.0956, 38.2063, 96.6541)
Luminance0.3821 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D387FC #B0FC87
analogous
#9887FC #D387FC #FC87EB
triadic
#D387FC #FCD387 #87FCD3
tetradic
#D387FC #FC9887 #B0FC87 #87EBFC
square
#D387FC #FC9887 #B0FC87 #87EBFC
split-complementary
#D387FC #EBFC87 #87FC98
monochromatic
#A710F9 #BD4BFB #D387FC #E9C3FD #F4E1FE

Accessibility & contrast

On white

2.43
#D387FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.64
#D387FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D387FC
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D387FC#FFFFFF#000000##000000
##D387FC1.002.438.648.64
#FFFFFF2.431.0021.0021.00
#0000008.6421.001.001.00
##0000008.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6EA2FF
Deuteranopia (green-blind)
#83A8F9
Tritanopia (blue-blind)
#CF99B6
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #d387fc;
/* rgb */ color: rgb(211, 135, 252);
/* oklch */ color: oklch(74.6% 0.178 312.7);
Tailwind
colors: {
  custom: {
    50: '#e2acfe',
    500: '#d387fc',
    950: '#000000',
  },
}
SCSS
$custom: #d387fc;
$custom-light: #e2acfe;
$custom-dark: #000000;
JSON
{
  "hex": "#d387fc",
  "rgb": {
    "r": 211,
    "g": 135,
    "b": 252
  },
  "hsl": {
    "h": 278.974,
    "s": 95.122,
    "l": 75.882
  },
  "oklch": {
    "l": 0.74579,
    "c": 0.1783,
    "h": 312.7
  },
  "luminance": 0.38205
}

Semantic roles & 50–950 ramp

primary
#D387FC
secondary
#E0F6D5
accent
#E60050
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#161018
muted
#847F86

Preview Lab

Preview with #D387FC

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

Preview Lab → · Contrast checker → · Palette generator →

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