#D38CFB#D38CFB

#D38CFB is a light, vivid violet. Relative luminance 0.396; OKLCH L 75.3% C 0.169 H 312.4°. Best body text is #000000 at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#D38CFB
RGBrgb(211, 140, 251)
HSLhsl(278, 93%, 77%)
HSVhsv(278, 44%, 98%)
CMYKcmyk(15.9%, 44.2%, 0%, 1.6%)
CIE-LABlab(69.16, 46.14, -44.99)
CIE-LCHlch(69.16, 64.44, 315.73°)
OKLaboklab(75.3% 0.114 -0.1249)
OKLCHoklch(75.3% 0.169 312.4)
XYZxyz(53.6517, 39.5712, 96.0598)
Luminance0.3957 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D38CFB #B4FB8C
analogous
#9C8CFB #D38CFB #FB8CEC
triadic
#D38CFB #FBD38C #8CFBD3
tetradic
#D38CFB #FB9C8C #B4FB8C #8CECFB
square
#D38CFB #FB9C8C #B4FB8C #8CECFB
split-complementary
#D38CFB #ECFB8C #8CFB9C
monochromatic
#A616F7 #BC51F9 #D38CFB #EAC7FD #F4E1FE

Accessibility & contrast

On white

2.36
#D38CFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.91
#D38CFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D38CFB
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D38CFB#FFFFFF#000000##000000
##D38CFB1.002.368.918.91
#FFFFFF2.361.0021.0021.00
#0000008.9121.001.001.00
##0000008.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#75A5FF
Deuteranopia (green-blind)
#88AAF8
Tritanopia (blue-blind)
#CF9DB8
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #d38cfb;
/* rgb */ color: rgb(211, 140, 251);
/* oklch */ color: oklch(75.3% 0.169 312.4);
Tailwind
colors: {
  custom: {
    50: '#e2affd',
    500: '#d38cfb',
    950: '#000000',
  },
}
SCSS
$custom: #d38cfb;
$custom-light: #e2affd;
$custom-dark: #000000;
JSON
{
  "hex": "#d38cfb",
  "rgb": {
    "r": 211,
    "g": 140,
    "b": 251
  },
  "hsl": {
    "h": 278.378,
    "s": 93.277,
    "l": 76.667
  },
  "oklch": {
    "l": 0.75304,
    "c": 0.16912,
    "h": 312.4
  },
  "luminance": 0.3957
}

Semantic roles & 50–950 ramp

primary
#D38CFB
secondary
#E1F6D5
accent
#E60053
background
#FEFAFF
surface
#FCF5FF
border
#D5CFD7
text
#161017
muted
#847F85

Preview Lab

Preview with #D38CFB

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

Preview Lab → · Contrast checker → · Palette generator →

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