#D38EFB#D38EFB

#D38EFB is a light, vivid violet. Relative luminance 0.402; OKLCH L 75.6% C 0.166 H 312.1°. Best body text is #000000 at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#D38EFB
RGBrgb(211, 142, 251)
HSLhsl(278, 93%, 77%)
HSVhsv(278, 43%, 98%)
CMYKcmyk(15.9%, 43.4%, 0%, 1.6%)
CIE-LABlab(69.58, 45.08, -44.33)
CIE-LCHlch(69.58, 63.22, 315.49°)
OKLaboklab(75.62% 0.1113 -0.123)
OKLCHoklch(75.62% 0.166 312.1)
XYZxyz(53.9466, 40.1610, 96.1581)
Luminance0.4016 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D38EFB #B6FB8E
analogous
#9D8EFB #D38EFB #FB8EEC
triadic
#D38EFB #FBD38E #8EFBD3
tetradic
#D38EFB #FB9D8E #B6FB8E #8EECFB
square
#D38EFB #FB9D8E #B6FB8E #8EECFB
split-complementary
#D38EFB #ECFB8E #8EFB9D
monochromatic
#A518F7 #BC53F9 #D38EFB #EAC9FD #F3E1FE

Accessibility & contrast

On white

2.33
#D38EFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.03
#D38EFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D38EFB
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D38EFB#FFFFFF#000000##000000
##D38EFB1.002.339.039.03
#FFFFFF2.331.0021.0021.00
#0000009.0321.001.001.00
##0000009.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#78A6FF
Deuteranopia (green-blind)
#8AACF8
Tritanopia (blue-blind)
#CF9EB9
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #d38efb;
/* rgb */ color: rgb(211, 142, 251);
/* oklch */ color: oklch(75.6% 0.166 312.1);
Tailwind
colors: {
  custom: {
    50: '#e2b0fd',
    500: '#d38efb',
    950: '#000000',
  },
}
SCSS
$custom: #d38efb;
$custom-light: #e2b0fd;
$custom-dark: #000000;
JSON
{
  "hex": "#d38efb",
  "rgb": {
    "r": 211,
    "g": 142,
    "b": 251
  },
  "hsl": {
    "h": 277.982,
    "s": 93.162,
    "l": 77.059
  },
  "oklch": {
    "l": 0.75619,
    "c": 0.16587,
    "h": 312.1
  },
  "luminance": 0.4016
}

Semantic roles & 50–950 ramp

primary
#D38EFB
secondary
#E1F6D5
accent
#E60054
background
#FEFAFF
surface
#FCF5FF
border
#D5CFD7
text
#161117
muted
#848085

Preview Lab

Preview with #D38EFB

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

Preview Lab → · Contrast checker → · Palette generator →

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