#D795EC#D795EC

#D795EC is a light, vivid purple. Relative luminance 0.420; OKLCH L 76.5% C 0.139 H 317.8°. Best body text is #000000 at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#D795EC
RGBrgb(215, 149, 236)
HSLhsl(286, 70%, 75%)
HSVhsv(286, 37%, 93%)
CMYKcmyk(8.9%, 36.9%, 0%, 7.5%)
CIE-LABlab(70.87, 39.44, -34.09)
CIE-LCHlch(70.87, 52.14, 319.16°)
OKLaboklab(76.47% 0.1031 -0.0936)
OKLCHoklch(76.47% 0.139 317.8)
XYZxyz(53.9100, 41.9995, 84.6075)
Luminance0.4200 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D795EC #AAEC95
analogous
#AB95EC #D795EC #EC95D6
triadic
#D795EC #ECD795 #95ECD7
tetradic
#D795EC #ECAB95 #AAEC95 #95D6EC
square
#D795EC #ECAB95 #AAEC95 #95D6EC
split-complementary
#D795EC #D6EC95 #95ECAB
monochromatic
#B02DD9 #C361E3 #D795EC #EBC9F5 #F5E5FA

Accessibility & contrast

On white

2.23
#D795EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.40
#D795EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D795EC
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D795EC#FFFFFF#000000##000000
##D795EC1.002.239.409.40
#FFFFFF2.231.0021.0021.00
#0000009.4021.001.001.00
##0000009.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#88A9EF
Deuteranopia (green-blind)
#99B0E9
Tritanopia (blue-blind)
#D7A0B6
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #d795ec;
/* rgb */ color: rgb(215, 149, 236);
/* oklch */ color: oklch(76.5% 0.139 317.8);
Tailwind
colors: {
  custom: {
    50: '#e4b5f2',
    500: '#d795ec',
    950: '#000000',
  },
}
SCSS
$custom: #d795ec;
$custom-light: #e4b5f2;
$custom-dark: #000000;
JSON
{
  "hex": "#d795ec",
  "rgb": {
    "r": 215,
    "g": 149,
    "b": 236
  },
  "hsl": {
    "h": 285.517,
    "s": 69.6,
    "l": 75.49
  },
  "oklch": {
    "l": 0.76473,
    "c": 0.13926,
    "h": 317.8
  },
  "luminance": 0.41998
}

Semantic roles & 50–950 ramp

primary
#D795EC
secondary
#DFF2D9
accent
#D21442
background
#FEFBFE
surface
#FCF6FD
border
#D5D0D5
text
#161117
muted
#848085

Preview Lab

Preview with #D795EC

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

Preview Lab → · Contrast checker → · Palette generator →

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