#D270EC#D270EC

#D270EC is a light, vivid purple. Relative luminance 0.313; OKLCH L 70.3% C 0.197 H 318.9°. Best body text is #000000 at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#D270EC
RGBrgb(210, 112, 236)
HSLhsl(287, 77%, 68%)
HSVhsv(287, 53%, 93%)
CMYKcmyk(11%, 52.5%, 0%, 7.5%)
CIE-LABlab(62.80, 57.16, -46.75)
CIE-LCHlch(62.80, 73.85, 320.72°)
OKLaboklab(70.33% 0.1487 -0.1299)
OKLCHoklch(70.33% 0.197 318.9)
XYZxyz(47.5108, 31.3479, 82.8887)
Luminance0.3135 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D270EC #8AEC70
analogous
#9470EC #D270EC #EC70C8
triadic
#D270EC #ECD270 #70ECD2
tetradic
#D270EC #EC9470 #8AEC70 #70C8EC
square
#D270EC #EC9470 #8AEC70 #70C8EC
split-complementary
#D270EC #C8EC70 #70EC94
monochromatic
#A31AC7 #C13AE5 #D270EC #E3A6F3 #F4DCFA

Accessibility & contrast

On white

2.89
#D270EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.27
#D270EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D270EC
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D270EC#FFFFFF#000000##000000
##D270EC1.002.897.277.27
#FFFFFF2.891.0021.0021.00
#0000007.2721.001.001.00
##0000007.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5891F0
Deuteranopia (green-blind)
#779BE9
Tritanopia (blue-blind)
#D282A4
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #d270ec;
/* rgb */ color: rgb(210, 112, 236);
/* oklch */ color: oklch(70.3% 0.197 318.9);
Tailwind
colors: {
  custom: {
    50: '#e29df2',
    500: '#d270ec',
    950: '#000000',
  },
}
SCSS
$custom: #d270ec;
$custom-light: #e29df2;
$custom-dark: #000000;
JSON
{
  "hex": "#d270ec",
  "rgb": {
    "r": 210,
    "g": 112,
    "b": 236
  },
  "hsl": {
    "h": 287.419,
    "s": 76.543,
    "l": 68.235
  },
  "oklch": {
    "l": 0.70326,
    "c": 0.19745,
    "h": 318.9
  },
  "luminance": 0.31346
}

Semantic roles & 50–950 ramp

primary
#D270EC
secondary
#D1EFC9
accent
#D90D38
background
#FEF9FE
surface
#FCF2FD
border
#D5CCD5
text
#160F17
muted
#847E85

Preview Lab

Preview with #D270EC

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

Preview Lab → · Contrast checker → · Palette generator →

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