#D28CF8#D28CF8

#D28CF8 is a light, vivid violet. Relative luminance 0.392; OKLCH L 75.1% C 0.165 H 312.8°. Best body text is #000000 at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#D28CF8
RGBrgb(210, 140, 248)
HSLhsl(279, 89%, 76%)
HSVhsv(279, 44%, 97%)
CMYKcmyk(15.3%, 43.5%, 0%, 2.7%)
CIE-LABlab(68.92, 45.23, -43.73)
CIE-LCHlch(68.92, 62.92, 315.97°)
OKLaboklab(75.06% 0.1124 -0.1213)
OKLCHoklch(75.06% 0.165 312.8)
XYZxyz(52.8968, 39.2362, 93.5755)
Luminance0.3923 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D28CF8 #B2F88C
analogous
#9C8CF8 #D28CF8 #F88CE8
triadic
#D28CF8 #F8D28C #8CF8D2
tetradic
#D28CF8 #F89C8C #B2F88C #8CE8F8
square
#D28CF8 #F89C8C #B2F88C #8CE8F8
split-complementary
#D28CF8 #E8F88C #8CF89C
monochromatic
#A519F1 #BB52F4 #D28CF8 #E9C6FC #F4E2FD

Accessibility & contrast

On white

2.37
#D28CF8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.85
#D28CF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D28CF8
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D28CF8#FFFFFF#000000##000000
##D28CF81.002.378.858.85
#FFFFFF2.371.0021.0021.00
#0000008.8521.001.001.00
##0000008.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#76A4FC
Deuteranopia (green-blind)
#89AAF5
Tritanopia (blue-blind)
#CF9CB6
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #d28cf8;
/* rgb */ color: rgb(210, 140, 248);
/* oklch */ color: oklch(75.1% 0.165 312.8);
Tailwind
colors: {
  custom: {
    50: '#e1affb',
    500: '#d28cf8',
    950: '#000000',
  },
}
SCSS
$custom: #d28cf8;
$custom-light: #e1affb;
$custom-dark: #000000;
JSON
{
  "hex": "#d28cf8",
  "rgb": {
    "r": 210,
    "g": 140,
    "b": 248
  },
  "hsl": {
    "h": 278.889,
    "s": 88.525,
    "l": 76.078
  },
  "oklch": {
    "l": 0.75056,
    "c": 0.16537,
    "h": 312.8
  },
  "luminance": 0.39235
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D28CF8

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

Preview Lab → · Contrast checker → · Palette generator →

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