#D28AFB#D28AFB

#D28AFB is a light, vivid violet. Relative luminance 0.388; OKLCH L 74.9% C 0.172 H 312.2°. Best body text is #000000 at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#D28AFB
RGBrgb(210, 138, 251)
HSLhsl(278, 93%, 76%)
HSVhsv(278, 45%, 98%)
CMYKcmyk(16.3%, 45%, 0%, 1.6%)
CIE-LABlab(68.64, 46.92, -45.82)
CIE-LCHlch(68.64, 65.58, 315.68°)
OKLaboklab(74.89% 0.1156 -0.1273)
OKLCHoklch(74.89% 0.172 312.2)
XYZxyz(53.0764, 38.8447, 95.9498)
Luminance0.3884 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D28AFB #B3FB8A
analogous
#9A8AFB #D28AFB #FB8AEC
triadic
#D28AFB #FBD28A #8AFBD2
tetradic
#D28AFB #FB9A8A #B3FB8A #8AECFB
square
#D28AFB #FB9A8A #B3FB8A #8AECFB
split-complementary
#D28AFB #ECFB8A #8AFB9A
monochromatic
#A414F7 #BB4FF9 #D28AFB #E9C5FD #F4E1FE

Accessibility & contrast

On white

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

On black

8.77
#D28AFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D28AFB
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D28AFB#FFFFFF#000000##000000
##D28AFB1.002.398.778.77
#FFFFFF2.391.0021.0021.00
#0000008.7721.001.001.00
##0000008.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#72A4FF
Deuteranopia (green-blind)
#85A9F8
Tritanopia (blue-blind)
#CE9BB7
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #d28afb;
/* rgb */ color: rgb(210, 138, 251);
/* oklch */ color: oklch(74.9% 0.172 312.2);
Tailwind
colors: {
  custom: {
    50: '#e2aefd',
    500: '#d28afb',
    950: '#000000',
  },
}
SCSS
$custom: #d28afb;
$custom-light: #e2aefd;
$custom-dark: #000000;
JSON
{
  "hex": "#d28afb",
  "rgb": {
    "r": 210,
    "g": 138,
    "b": 251
  },
  "hsl": {
    "h": 278.23,
    "s": 93.388,
    "l": 76.275
  },
  "oklch": {
    "l": 0.74888,
    "c": 0.17197,
    "h": 312.2
  },
  "luminance": 0.38844
}

Semantic roles & 50–950 ramp

primary
#D28AFB
secondary
#E1F6D5
accent
#E60053
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#161017
muted
#847F85

Preview Lab

Preview with #D28AFB

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

Preview Lab → · Contrast checker → · Palette generator →

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