#D278EB#D278EB

#D278EB is a light, vivid purple. Relative luminance 0.331; OKLCH L 71.4% C 0.184 H 318.6°. Best body text is #000000 at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#D278EB
RGBrgb(210, 120, 235)
HSLhsl(287, 74%, 70%)
HSVhsv(287, 49%, 92%)
CMYKcmyk(10.6%, 48.9%, 0%, 7.8%)
CIE-LABlab(64.27, 52.98, -43.89)
CIE-LCHlch(64.27, 68.79, 320.36°)
OKLaboklab(71.4% 0.1379 -0.1216)
OKLCHoklch(71.4% 0.184 318.6)
XYZxyz(48.2882, 33.1345, 82.4331)
Luminance0.3313 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D278EB #91EB78
analogous
#9978EB #D278EB #EB78CA
triadic
#D278EB #EBD278 #78EBD2
tetradic
#D278EB #EB9978 #91EB78 #78CAEB
square
#D278EB #EB9978 #91EB78 #78CAEB
split-complementary
#D278EB #CAEB78 #78EB99
monochromatic
#A51ECB #C043E3 #D278EB #E4ADF3 #F6E3FB

Accessibility & contrast

On white

2.75
#D278EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.63
#D278EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D278EB
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D278EB#FFFFFF#000000##000000
##D278EB1.002.757.637.63
#FFFFFF2.751.0021.0021.00
#0000007.6321.001.001.00
##0000007.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6396EF
Deuteranopia (green-blind)
#7E9FE8
Tritanopia (blue-blind)
#D288A7
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #d278eb;
/* rgb */ color: rgb(210, 120, 235);
/* oklch */ color: oklch(71.4% 0.184 318.6);
Tailwind
colors: {
  custom: {
    50: '#e2a2f2',
    500: '#d278eb',
    950: '#000000',
  },
}
SCSS
$custom: #d278eb;
$custom-light: #e2a2f2;
$custom-dark: #000000;
JSON
{
  "hex": "#d278eb",
  "rgb": {
    "r": 210,
    "g": 120,
    "b": 235
  },
  "hsl": {
    "h": 286.957,
    "s": 74.194,
    "l": 69.608
  },
  "oklch": {
    "l": 0.71396,
    "c": 0.18391,
    "h": 318.6
  },
  "luminance": 0.33133
}

Semantic roles & 50–950 ramp

primary
#D278EB
secondary
#D6F0CF
accent
#D60F3A
background
#FEFAFE
surface
#FCF4FD
border
#D5CED5
text
#160F17
muted
#847F85

Preview Lab

Preview with #D278EB

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

Preview Lab → · Contrast checker → · Palette generator →

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