#D28AFD#D28AFD

#D28AFD is a light, vivid violet. Relative luminance 0.390; OKLCH L 75.0% C 0.174 H 311.7°. Best body text is #000000 at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#D28AFD
RGBrgb(210, 138, 253)
HSLhsl(278, 97%, 77%)
HSVhsv(278, 45%, 99%)
CMYKcmyk(17%, 45.5%, 0%, 0.8%)
CIE-LABlab(68.73, 47.34, -46.76)
CIE-LCHlch(68.73, 66.54, 315.35°)
OKLaboklab(74.99% 0.1159 -0.1301)
OKLCHoklch(74.99% 0.174 311.7)
XYZxyz(53.3933, 38.9715, 97.6190)
Luminance0.3897 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D28AFD #B5FD8A
analogous
#998AFD #D28AFD #FD8AEF
triadic
#D28AFD #FDD28A #8AFDD2
tetradic
#D28AFD #FD998A #B5FD8A #8AEFFD
square
#D28AFD #FD998A #B5FD8A #8AEFFD
split-complementary
#D28AFD #EFFD8A #8AFD99
monochromatic
#A412FB #BB4EFC #D28AFD #E9C6FE #F3E1FE

Accessibility & contrast

On white

2.39
#D28AFD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.79
#D28AFD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D28AFD
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D28AFD#FFFFFF#000000##000000
##D28AFD1.002.398.798.79
#FFFFFF2.391.0021.0021.00
#0000008.7921.001.001.00
##0000008.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#71A4FF
Deuteranopia (green-blind)
#84A9FA
Tritanopia (blue-blind)
#CE9CB8
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #d28afd;
/* rgb */ color: rgb(210, 138, 253);
/* oklch */ color: oklch(75.0% 0.174 311.7);
Tailwind
colors: {
  custom: {
    50: '#e2aefe',
    500: '#d28afd',
    950: '#000000',
  },
}
SCSS
$custom: #d28afd;
$custom-light: #e2aefe;
$custom-dark: #000000;
JSON
{
  "hex": "#d28afd",
  "rgb": {
    "r": 210,
    "g": 138,
    "b": 253
  },
  "hsl": {
    "h": 277.565,
    "s": 96.639,
    "l": 76.667
  },
  "oklch": {
    "l": 0.74987,
    "c": 0.1742,
    "h": 311.7
  },
  "luminance": 0.3897
}

Semantic roles & 50–950 ramp

primary
#D28AFD
secondary
#E1F7D4
accent
#E60056
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#161018
muted
#847F86

Preview Lab

Preview with #D28AFD

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

Preview Lab → · Contrast checker → · Palette generator →

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