#D278F7#D278F7

#D278F7 is a light, vivid purple. Relative luminance 0.339; OKLCH L 72.0% C 0.196 H 315.2°. Best body text is #000000 at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#D278F7
RGBrgb(210, 120, 247)
HSLhsl(283, 89%, 72%)
HSVhsv(283, 51%, 97%)
CMYKcmyk(15%, 51.4%, 0%, 3.1%)
CIE-LABlab(64.84, 55.38, -49.60)
CIE-LCHlch(64.84, 74.34, 318.15°)
OKLaboklab(72.01% 0.1393 -0.1382)
OKLCHoklch(72.01% 0.196 315.2)
XYZxyz(50.0807, 33.8515, 91.8735)
Luminance0.3385 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D278F7 #9DF778
analogous
#9378F7 #D278F7 #F778DC
triadic
#D278F7 #F7D278 #78F7D2
tetradic
#D278F7 #F79378 #9DF778 #78DCF7
square
#D278F7 #F79378 #9DF778 #78DCF7
split-complementary
#D278F7 #DCF778 #78F793
monochromatic
#A80EE7 #BF3EF4 #D278F7 #E5B2FA #F5E2FD

Accessibility & contrast

On white

2.70
#D278F7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.77
#D278F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D278F7
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D278F7#FFFFFF#000000##000000
##D278F71.002.707.777.77
#FFFFFF2.701.0021.0021.00
#0000007.7721.001.001.00
##0000007.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B98FB
Deuteranopia (green-blind)
#78A0F4
Tritanopia (blue-blind)
#D08CAD
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #d278f7;
/* rgb */ color: rgb(210, 120, 247);
/* oklch */ color: oklch(72.0% 0.196 315.2);
Tailwind
colors: {
  custom: {
    50: '#e2a2fa',
    500: '#d278f7',
    950: '#000000',
  },
}
SCSS
$custom: #d278f7;
$custom-light: #e2a2fa;
$custom-dark: #000000;
JSON
{
  "hex": "#d278f7",
  "rgb": {
    "r": 210,
    "g": 120,
    "b": 247
  },
  "hsl": {
    "h": 282.52,
    "s": 88.811,
    "l": 71.961
  },
  "oklch": {
    "l": 0.72008,
    "c": 0.19621,
    "h": 315.2
  },
  "luminance": 0.3385
}

Semantic roles & 50–950 ramp

primary
#D278F7
secondary
#DFF5D5
accent
#E50043
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#160F17
muted
#847F85

Preview Lab

Preview with #D278F7

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

Preview Lab → · Contrast checker → · Palette generator →

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