#D28AFC#D28AFC

#D28AFC is a light, vivid violet. Relative luminance 0.389; OKLCH L 74.9% C 0.173 H 312.0°. Best body text is #000000 at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#D28AFC
RGBrgb(210, 138, 252)
HSLhsl(278, 95%, 76%)
HSVhsv(278, 45%, 99%)
CMYKcmyk(16.7%, 45.2%, 0%, 1.2%)
CIE-LABlab(68.68, 47.13, -46.29)
CIE-LCHlch(68.68, 66.06, 315.52°)
OKLaboklab(74.94% 0.1158 -0.1287)
OKLCHoklch(74.94% 0.173 312)
XYZxyz(53.2345, 38.9079, 96.7822)
Luminance0.3891 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D28AFC #B4FC8A
analogous
#998AFC #D28AFC #FC8AED
triadic
#D28AFC #FCD28A #8AFCD2
tetradic
#D28AFC #FC998A #B4FC8A #8AEDFC
square
#D28AFC #FC998A #B4FC8A #8AEDFC
split-complementary
#D28AFC #EDFC8A #8AFC99
monochromatic
#A413F9 #BB4EFA #D28AFC #E9C6FE #F4E1FE

Accessibility & contrast

On white

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

On black

8.78
#D28AFC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D28AFC
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D28AFC#FFFFFF#000000##000000
##D28AFC1.002.398.788.78
#FFFFFF2.391.0021.0021.00
#0000008.7821.001.001.00
##0000008.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#71A4FF
Deuteranopia (green-blind)
#85A9F9
Tritanopia (blue-blind)
#CE9BB7
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #d28afc;
/* rgb */ color: rgb(210, 138, 252);
/* oklch */ color: oklch(74.9% 0.173 312.0);
Tailwind
colors: {
  custom: {
    50: '#e2aefe',
    500: '#d28afc',
    950: '#000000',
  },
}
SCSS
$custom: #d28afc;
$custom-light: #e2aefe;
$custom-dark: #000000;
JSON
{
  "hex": "#d28afc",
  "rgb": {
    "r": 210,
    "g": 138,
    "b": 252
  },
  "hsl": {
    "h": 277.895,
    "s": 95,
    "l": 76.471
  },
  "oklch": {
    "l": 0.74937,
    "c": 0.17309,
    "h": 312
  },
  "luminance": 0.38907
}

Semantic roles & 50–950 ramp

primary
#D28AFC
secondary
#E1F6D5
accent
#E60055
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#161018
muted
#847F86

Preview Lab

Preview with #D28AFC

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

Preview Lab → · Contrast checker → · Palette generator →

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