#D398FD#D398FD

#D398FD is a light, vivid violet. Relative luminance 0.434; OKLCH L 77.3% C 0.152 H 310.1°. Best body text is #000000 at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#D398FD
RGBrgb(211, 152, 253)
HSLhsl(275, 96%, 79%)
HSVhsv(275, 40%, 99%)
CMYKcmyk(16.6%, 39.9%, 0%, 0.8%)
CIE-LABlab(71.82, 40.16, -41.91)
CIE-LCHlch(71.82, 58.04, 313.78°)
OKLaboklab(77.33% 0.0978 -0.1161)
OKLCHoklch(77.33% 0.152 310.1)
XYZxyz(55.8186, 43.3980, 98.3456)
Luminance0.4340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D398FD #C2FD98
analogous
#A198FD #D398FD #FD98F4
triadic
#D398FD #FDD398 #98FDD3
tetradic
#D398FD #FDA198 #C2FD98 #98F4FD
square
#D398FD #FDA198 #C2FD98 #98F4FD
split-complementary
#D398FD #F4FD98 #98FDA1
monochromatic
#A020FB #B95CFC #D398FD #EDD4FE #F2E1FE

Accessibility & contrast

On white

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

On black

9.68
#D398FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D398FD
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D398FD#FFFFFF#000000##000000
##D398FD1.002.179.689.68
#FFFFFF2.171.0021.0021.00
#0000009.6821.001.001.00
##0000009.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#83ADFF
Deuteranopia (green-blind)
#92B1FA
Tritanopia (blue-blind)
#CEA7BF
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #d398fd;
/* rgb */ color: rgb(211, 152, 253);
/* oklch */ color: oklch(77.3% 0.152 310.1);
Tailwind
colors: {
  custom: {
    50: '#e2b7fe',
    500: '#d398fd',
    950: '#000000',
  },
}
SCSS
$custom: #d398fd;
$custom-light: #e2b7fe;
$custom-dark: #000000;
JSON
{
  "hex": "#d398fd",
  "rgb": {
    "r": 211,
    "g": 152,
    "b": 253
  },
  "hsl": {
    "h": 275.05,
    "s": 96.19,
    "l": 79.412
  },
  "oklch": {
    "l": 0.77331,
    "c": 0.15176,
    "h": 310.1
  },
  "luminance": 0.43397
}

Semantic roles & 50–950 ramp

primary
#D398FD
secondary
#E3F7D4
accent
#E6005F
background
#FEFBFF
surface
#FCF6FF
border
#D5D0D7
text
#151118
muted
#848086

Preview Lab

Preview with #D398FD

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

Preview Lab → · Contrast checker → · Palette generator →

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