#D28AF7#D28AF7

#D28AF7 is a light, vivid violet. Relative luminance 0.386; OKLCH L 74.7% C 0.168 H 313.3°. Best body text is #000000 at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#D28AF7
RGBrgb(210, 138, 247)
HSLhsl(280, 87%, 75%)
HSVhsv(280, 44%, 97%)
CMYKcmyk(15%, 44.1%, 0%, 3.1%)
CIE-LABlab(68.46, 46.08, -43.92)
CIE-LCHlch(68.46, 63.66, 316.38°)
OKLaboklab(74.69% 0.115 -0.1218)
OKLCHoklch(74.69% 0.168 313.3)
XYZxyz(52.4525, 38.5952, 92.6641)
Luminance0.3859 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D28AF7 #AFF78A
analogous
#9B8AF7 #D28AF7 #F78AE5
triadic
#D28AF7 #F7D28A #8AF7D2
tetradic
#D28AF7 #F79B8A #AFF78A #8AE5F7
square
#D28AF7 #F79B8A #AFF78A #8AE5F7
split-complementary
#D28AF7 #E5F78A #8AF79B
monochromatic
#A617EF #BC51F3 #D28AF7 #E8C3FB #F4E2FD

Accessibility & contrast

On white

2.41
#D28AF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.72
#D28AF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D28AF7
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D28AF7#FFFFFF#000000##000000
##D28AF71.002.418.728.72
#FFFFFF2.411.0021.0021.00
#0000008.7221.001.001.00
##0000008.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#74A3FB
Deuteranopia (green-blind)
#87A9F4
Tritanopia (blue-blind)
#CF9AB5
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #d28af7;
/* rgb */ color: rgb(210, 138, 247);
/* oklch */ color: oklch(74.7% 0.168 313.3);
Tailwind
colors: {
  custom: {
    50: '#e1aefa',
    500: '#d28af7',
    950: '#000000',
  },
}
SCSS
$custom: #d28af7;
$custom-light: #e1aefa;
$custom-dark: #000000;
JSON
{
  "hex": "#d28af7",
  "rgb": {
    "r": 210,
    "g": 138,
    "b": 247
  },
  "hsl": {
    "h": 279.633,
    "s": 87.2,
    "l": 75.49
  },
  "oklch": {
    "l": 0.74693,
    "c": 0.16753,
    "h": 313.3
  },
  "luminance": 0.38594
}

Semantic roles & 50–950 ramp

primary
#D28AF7
secondary
#E1F5D6
accent
#E4024E
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#151017
muted
#847F85

Preview Lab

Preview with #D28AF7

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

Preview Lab → · Contrast checker → · Palette generator →

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