#D398FC#D398FC

#D398FC is a light, vivid violet. Relative luminance 0.433; OKLCH L 77.3% C 0.151 H 310.4°. Best body text is #000000 at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#D398FC
RGBrgb(211, 152, 252)
HSLhsl(275, 94%, 79%)
HSVhsv(275, 40%, 99%)
CMYKcmyk(16.3%, 39.7%, 0%, 1.2%)
CIE-LABlab(71.78, 39.95, -41.43)
CIE-LCHlch(71.78, 57.55, 313.96°)
OKLaboklab(77.29% 0.0976 -0.1147)
OKLCHoklch(77.29% 0.151 310.4)
XYZxyz(55.6597, 43.3344, 97.5088)
Luminance0.4333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D398FC #C1FC98
analogous
#A198FC #D398FC #FC98F3
triadic
#D398FC #FCD398 #98FCD3
tetradic
#D398FC #FCA198 #C1FC98 #98F3FC
square
#D398FC #FCA198 #C1FC98 #98F3FC
split-complementary
#D398FC #F3FC98 #98FCA1
monochromatic
#A021F9 #BA5DFA #D398FC #ECD3FE #F2E1FE

Accessibility & contrast

On white

2.17
#D398FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.67
#D398FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D398FC
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D398FC#FFFFFF#000000##000000
##D398FC1.002.179.679.67
#FFFFFF2.171.0021.0021.00
#0000009.6721.001.001.00
##0000009.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#84ADFF
Deuteranopia (green-blind)
#92B1F9
Tritanopia (blue-blind)
#CEA7BE
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #d398fc;
/* rgb */ color: rgb(211, 152, 252);
/* oklch */ color: oklch(77.3% 0.151 310.4);
Tailwind
colors: {
  custom: {
    50: '#e2b7fd',
    500: '#d398fc',
    950: '#000000',
  },
}
SCSS
$custom: #d398fc;
$custom-light: #e2b7fd;
$custom-dark: #000000;
JSON
{
  "hex": "#d398fc",
  "rgb": {
    "r": 211,
    "g": 152,
    "b": 252
  },
  "hsl": {
    "h": 275.4,
    "s": 94.34,
    "l": 79.216
  },
  "oklch": {
    "l": 0.77285,
    "c": 0.15059,
    "h": 310.4
  },
  "luminance": 0.43334
}

Semantic roles & 50–950 ramp

primary
#D398FC
secondary
#E2F6D5
accent
#E6005E
background
#FEFBFF
surface
#FCF6FF
border
#D5D0D7
text
#151118
muted
#848086

Preview Lab

Preview with #D398FC

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

Preview Lab → · Contrast checker → · Palette generator →

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