#D28CF7#D28CF7

#D28CF7 is a light, vivid violet. Relative luminance 0.392; OKLCH L 75.0% C 0.164 H 313.1°. Best body text is #000000 at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#D28CF7
RGBrgb(210, 140, 247)
HSLhsl(279, 87%, 76%)
HSVhsv(279, 43%, 97%)
CMYKcmyk(15%, 43.3%, 0%, 3.1%)
CIE-LABlab(68.88, 45.02, -43.26)
CIE-LCHlch(68.88, 62.44, 316.15°)
OKLaboklab(75.01% 0.1122 -0.1199)
OKLCHoklch(75.01% 0.164 313.1)
XYZxyz(52.7421, 39.1743, 92.7607)
Luminance0.3917 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D28CF7 #B1F78C
analogous
#9C8CF7 #D28CF7 #F78CE7
triadic
#D28CF7 #F7D28C #8CF7D2
tetradic
#D28CF7 #F79C8C #B1F78C #8CE7F7
square
#D28CF7 #F79C8C #B1F78C #8CE7F7
split-complementary
#D28CF7 #E7F78C #8CF79C
monochromatic
#A51AEF #BC53F3 #D28CF7 #E8C5FB #F4E2FD

Accessibility & contrast

On white

2.38
#D28CF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.83
#D28CF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D28CF7
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D28CF7#FFFFFF#000000##000000
##D28CF71.002.388.838.83
#FFFFFF2.381.0021.0021.00
#0000008.8321.001.001.00
##0000008.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#77A4FB
Deuteranopia (green-blind)
#89AAF4
Tritanopia (blue-blind)
#CF9CB6
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #d28cf7;
/* rgb */ color: rgb(210, 140, 247);
/* oklch */ color: oklch(75.0% 0.164 313.1);
Tailwind
colors: {
  custom: {
    50: '#e1affa',
    500: '#d28cf7',
    950: '#000000',
  },
}
SCSS
$custom: #d28cf7;
$custom-light: #e1affa;
$custom-dark: #000000;
JSON
{
  "hex": "#d28cf7",
  "rgb": {
    "r": 210,
    "g": 140,
    "b": 247
  },
  "hsl": {
    "h": 279.252,
    "s": 86.992,
    "l": 75.882
  },
  "oklch": {
    "l": 0.75008,
    "c": 0.16425,
    "h": 313.1
  },
  "luminance": 0.39173
}

Semantic roles & 50–950 ramp

primary
#D28CF7
secondary
#E1F5D6
accent
#E40250
background
#FEFAFF
surface
#FCF5FF
border
#D5CFD7
text
#151017
muted
#847F85

Preview Lab

Preview with #D28CF7

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

Preview Lab → · Contrast checker → · Palette generator →

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