#D38EF7#D38EF7

#D38EF7 is a light, vivid violet. Relative luminance 0.399; OKLCH L 75.4% C 0.161 H 313.3°. Best body text is #000000 at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#D38EF7
RGBrgb(211, 142, 247)
HSLhsl(279, 87%, 76%)
HSVhsv(279, 43%, 97%)
CMYKcmyk(14.6%, 42.5%, 0%, 3.1%)
CIE-LABlab(69.41, 44.25, -42.42)
CIE-LCHlch(69.41, 61.30, 316.21°)
OKLaboklab(75.43% 0.1106 -0.1175)
OKLCHoklch(75.43% 0.161 313.3)
XYZxyz(53.3227, 39.9114, 92.8724)
Luminance0.3991 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D38EF7 #B2F78E
analogous
#9F8EF7 #D38EF7 #F78EE6
triadic
#D38EF7 #F7D38E #8EF7D3
tetradic
#D38EF7 #F79F8E #B2F78E #8EE6F7
square
#D38EF7 #F79F8E #B2F78E #8EE6F7
split-complementary
#D38EF7 #E6F78E #8EF79F
monochromatic
#A61CEF #BD55F3 #D38EF7 #E9C7FB #F4E2FD

Accessibility & contrast

On white

2.34
#D38EF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.98
#D38EF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D38EF7
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D38EF7#FFFFFF#000000##000000
##D38EF71.002.348.988.98
#FFFFFF2.341.0021.0021.00
#0000008.9821.001.001.00
##0000008.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7AA6FB
Deuteranopia (green-blind)
#8BABF4
Tritanopia (blue-blind)
#D09DB7
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #d38ef7;
/* rgb */ color: rgb(211, 142, 247);
/* oklch */ color: oklch(75.4% 0.161 313.3);
Tailwind
colors: {
  custom: {
    50: '#e2b0fa',
    500: '#d38ef7',
    950: '#000000',
  },
}
SCSS
$custom: #d38ef7;
$custom-light: #e2b0fa;
$custom-dark: #000000;
JSON
{
  "hex": "#d38ef7",
  "rgb": {
    "r": 211,
    "g": 142,
    "b": 247
  },
  "hsl": {
    "h": 279.429,
    "s": 86.777,
    "l": 76.275
  },
  "oklch": {
    "l": 0.75428,
    "c": 0.16137,
    "h": 313.3
  },
  "luminance": 0.3991
}

Semantic roles & 50–950 ramp

primary
#D38EF7
secondary
#E1F5D6
accent
#E3024F
background
#FEFAFF
surface
#FCF5FF
border
#D5CFD7
text
#161117
muted
#848085

Preview Lab

Preview with #D38EF7

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

Preview Lab → · Contrast checker → · Palette generator →

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