#D28AFA#D28AFA

#D28AFA is a light, vivid violet. Relative luminance 0.388; OKLCH L 74.8% C 0.171 H 312.5°. Best body text is #000000 at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#D28AFA
RGBrgb(210, 138, 250)
HSLhsl(279, 92%, 76%)
HSVhsv(279, 45%, 98%)
CMYKcmyk(16%, 44.8%, 0%, 2%)
CIE-LABlab(68.59, 46.71, -45.34)
CIE-LCHlch(68.59, 65.10, 315.85°)
OKLaboklab(74.84% 0.1155 -0.1259)
OKLCHoklch(74.84% 0.171 312.5)
XYZxyz(52.9192, 38.7818, 95.1219)
Luminance0.3878 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D28AFA #B2FA8A
analogous
#9A8AFA #D28AFA #FA8AEA
triadic
#D28AFA #FAD28A #8AFAD2
tetradic
#D28AFA #FA9A8A #B2FA8A #8AEAFA
square
#D28AFA #FA9A8A #B2FA8A #8AEAFA
split-complementary
#D28AFA #EAFA8A #8AFA9A
monochromatic
#A515F5 #BB4FF7 #D28AFA #E9C5FD #F4E2FE

Accessibility & contrast

On white

2.40
#D28AFA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.76
#D28AFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D28AFA
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D28AFA#FFFFFF#000000##000000
##D28AFA1.002.408.768.76
#FFFFFF2.401.0021.0021.00
#0000008.7621.001.001.00
##0000008.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#72A3FE
Deuteranopia (green-blind)
#86A9F7
Tritanopia (blue-blind)
#CE9BB6
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #d28afa;
/* rgb */ color: rgb(210, 138, 250);
/* oklch */ color: oklch(74.8% 0.171 312.5);
Tailwind
colors: {
  custom: {
    50: '#e2aefc',
    500: '#d28afa',
    950: '#000000',
  },
}
SCSS
$custom: #d28afa;
$custom-light: #e2aefc;
$custom-dark: #000000;
JSON
{
  "hex": "#d28afa",
  "rgb": {
    "r": 210,
    "g": 138,
    "b": 250
  },
  "hsl": {
    "h": 278.571,
    "s": 91.803,
    "l": 76.078
  },
  "oklch": {
    "l": 0.74839,
    "c": 0.17086,
    "h": 312.5
  },
  "luminance": 0.38781
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D28AFA

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

Preview Lab → · Contrast checker → · Palette generator →

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