#D28EF7#D28EF7

#D28EF7 is a light, vivid violet. Relative luminance 0.398; OKLCH L 75.3% C 0.161 H 312.8°. Best body text is #000000 at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#D28EF7
RGBrgb(210, 142, 247)
HSLhsl(279, 87%, 76%)
HSVhsv(279, 43%, 97%)
CMYKcmyk(15%, 42.5%, 0%, 3.1%)
CIE-LABlab(69.30, 43.96, -42.59)
CIE-LCHlch(69.30, 61.21, 315.91°)
OKLaboklab(75.33% 0.1094 -0.118)
OKLCHoklch(75.33% 0.161 312.8)
XYZxyz(53.0370, 39.7641, 92.8590)
Luminance0.3976 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D28EF7 #B3F78E
analogous
#9E8EF7 #D28EF7 #F78EE8
triadic
#D28EF7 #F7D28E #8EF7D2
tetradic
#D28EF7 #F79E8E #B3F78E #8EE8F7
square
#D28EF7 #F79E8E #B3F78E #8EE8F7
split-complementary
#D28EF7 #E8F78E #8EF79E
monochromatic
#A41CEF #BB55F3 #D28EF7 #E9C7FB #F4E2FD

Accessibility & contrast

On white

2.35
#D28EF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.95
#D28EF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D28EF7
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D28EF7#FFFFFF#000000##000000
##D28EF71.002.358.958.95
#FFFFFF2.351.0021.0021.00
#0000008.9521.001.001.00
##0000008.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#79A5FB
Deuteranopia (green-blind)
#8BABF4
Tritanopia (blue-blind)
#CF9DB7
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #d28ef7;
/* rgb */ color: rgb(210, 142, 247);
/* oklch */ color: oklch(75.3% 0.161 312.8);
Tailwind
colors: {
  custom: {
    50: '#e1b0fa',
    500: '#d28ef7',
    950: '#000000',
  },
}
SCSS
$custom: #d28ef7;
$custom-light: #e1b0fa;
$custom-dark: #000000;
JSON
{
  "hex": "#d28ef7",
  "rgb": {
    "r": 210,
    "g": 142,
    "b": 247
  },
  "hsl": {
    "h": 278.857,
    "s": 86.777,
    "l": 76.275
  },
  "oklch": {
    "l": 0.75325,
    "c": 0.16096,
    "h": 312.8
  },
  "luminance": 0.39763
}

Semantic roles & 50–950 ramp

primary
#D28EF7
secondary
#E1F5D6
accent
#E30252
background
#FEFAFF
surface
#FCF5FF
border
#D5CFD7
text
#151117
muted
#848085

Preview Lab

Preview with #D28EF7

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

Preview Lab → · Contrast checker → · Palette generator →

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