#D174EC#D174EC

#D174EC is a light, vivid purple. Relative luminance 0.321; OKLCH L 70.8% C 0.191 H 318.2°. Best body text is #000000 at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#D174EC
RGBrgb(209, 116, 236)
HSLhsl(287, 76%, 69%)
HSVhsv(287, 51%, 93%)
CMYKcmyk(11.4%, 50.8%, 0%, 7.5%)
CIE-LABlab(63.43, 54.92, -45.77)
CIE-LCHlch(63.43, 71.49, 320.19°)
OKLaboklab(70.76% 0.1423 -0.1271)
OKLCHoklch(70.76% 0.191 318.2)
XYZxyz(47.6781, 32.1039, 83.0258)
Luminance0.3210 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D174EC #8FEC74
analogous
#9574EC #D174EC #EC74CB
triadic
#D174EC #ECD174 #74ECD1
tetradic
#D174EC #EC9574 #8FEC74 #74CBEC
square
#D174EC #EC9574 #8FEC74 #74CBEC
split-complementary
#D174EC #CBEC74 #74EC95
monochromatic
#A31CCA #BF3EE5 #D174EC #E3AAF3 #F5E0FB

Accessibility & contrast

On white

2.83
#D174EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.42
#D174EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D174EC
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D174EC#FFFFFF#000000##000000
##D174EC1.002.837.427.42
#FFFFFF2.831.0021.0021.00
#0000007.4221.001.001.00
##0000007.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D93F0
Deuteranopia (green-blind)
#7A9DE9
Tritanopia (blue-blind)
#D185A5
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #d174ec;
/* rgb */ color: rgb(209, 116, 236);
/* oklch */ color: oklch(70.8% 0.191 318.2);
Tailwind
colors: {
  custom: {
    50: '#e19ff2',
    500: '#d174ec',
    950: '#000000',
  },
}
SCSS
$custom: #d174ec;
$custom-light: #e19ff2;
$custom-dark: #000000;
JSON
{
  "hex": "#d174ec",
  "rgb": {
    "r": 209,
    "g": 116,
    "b": 236
  },
  "hsl": {
    "h": 286.5,
    "s": 75.949,
    "l": 69.02
  },
  "oklch": {
    "l": 0.70763,
    "c": 0.19077,
    "h": 318.2
  },
  "luminance": 0.32102
}

Semantic roles & 50–950 ramp

primary
#D174EC
secondary
#D4EFCC
accent
#D80D3B
background
#FEFAFE
surface
#FCF3FD
border
#D5CDD5
text
#160F17
muted
#847F85

Preview Lab

Preview with #D174EC

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

Preview Lab → · Contrast checker → · Palette generator →

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