#D28EF8#D28EF8

#D28EF8 is a light, vivid violet. Relative luminance 0.398; OKLCH L 75.4% C 0.162 H 312.6°. Best body text is #000000 at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#D28EF8
RGBrgb(210, 142, 248)
HSLhsl(278, 88%, 76%)
HSVhsv(278, 43%, 97%)
CMYKcmyk(15.3%, 42.7%, 0%, 2.7%)
CIE-LABlab(69.35, 44.17, -43.07)
CIE-LCHlch(69.35, 61.69, 315.72°)
OKLaboklab(75.37% 0.1096 -0.1194)
OKLCHoklch(75.37% 0.162 312.6)
XYZxyz(53.1917, 39.8260, 93.6738)
Luminance0.3982 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D28EF8 #B4F88E
analogous
#9D8EF8 #D28EF8 #F88EE9
triadic
#D28EF8 #F8D28E #8EF8D2
tetradic
#D28EF8 #F89D8E #B4F88E #8EE9F8
square
#D28EF8 #F89D8E #B4F88E #8EE9F8
split-complementary
#D28EF8 #E9F88E #8EF89D
monochromatic
#A41BF1 #BB54F4 #D28EF8 #E9C8FC #F4E2FD

Accessibility & contrast

On white

2.34
#D28EF8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.97
#D28EF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D28EF8
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D28EF8#FFFFFF#000000##000000
##D28EF81.002.348.978.97
#FFFFFF2.341.0021.0021.00
#0000008.9721.001.001.00
##0000008.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#79A6FC
Deuteranopia (green-blind)
#8AABF5
Tritanopia (blue-blind)
#CF9EB7
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #d28ef8;
/* rgb */ color: rgb(210, 142, 248);
/* oklch */ color: oklch(75.4% 0.162 312.6);
Tailwind
colors: {
  custom: {
    50: '#e1b0fb',
    500: '#d28ef8',
    950: '#000000',
  },
}
SCSS
$custom: #d28ef8;
$custom-light: #e1b0fb;
$custom-dark: #000000;
JSON
{
  "hex": "#d28ef8",
  "rgb": {
    "r": 210,
    "g": 142,
    "b": 248
  },
  "hsl": {
    "h": 278.491,
    "s": 88.333,
    "l": 76.471
  },
  "oklch": {
    "l": 0.75373,
    "c": 0.1621,
    "h": 312.6
  },
  "luminance": 0.39825
}

Semantic roles & 50–950 ramp

primary
#D28EF8
secondary
#E1F5D6
accent
#E50152
background
#FEFAFF
surface
#FCF5FF
border
#D5CFD7
text
#151117
muted
#848085

Preview Lab

Preview with #D28EF8

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

Preview Lab → · Contrast checker → · Palette generator →

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