#D398FE#D398FE

#D398FE is a light, vivid violet. Relative luminance 0.435; OKLCH L 77.4% C 0.153 H 309.8°. Best body text is #000000 at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#D398FE
RGBrgb(211, 152, 254)
HSLhsl(275, 98%, 80%)
HSVhsv(275, 40%, 100%)
CMYKcmyk(16.9%, 40.2%, 0%, 0.4%)
CIE-LABlab(71.87, 40.37, -42.38)
CIE-LCHlch(71.87, 58.53, 313.61°)
OKLaboklab(77.38% 0.098 -0.1174)
OKLCHoklch(77.38% 0.153 309.8)
XYZxyz(55.9783, 43.4619, 99.1868)
Luminance0.4346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D398FE #C3FE98
analogous
#A098FE #D398FE #FE98F6
triadic
#D398FE #FED398 #98FED3
tetradic
#D398FE #FEA098 #C3FE98 #98F6FE
square
#D398FE #FEA098 #C3FE98 #98F6FE
split-complementary
#D398FE #F6FE98 #98FEA0
monochromatic
#9F1FFD #B95BFD #D398FE #EDD5FF #F2E1FF

Accessibility & contrast

On white

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

On black

9.69
#D398FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D398FE
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D398FE#FFFFFF#000000##000000
##D398FE1.002.179.699.69
#FFFFFF2.171.0021.0021.00
#0000009.6921.001.001.00
##0000009.6921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d398fe;
/* rgb */ color: rgb(211, 152, 254);
/* oklch */ color: oklch(77.4% 0.153 309.8);
Tailwind
colors: {
  custom: {
    50: '#e2b7ff',
    500: '#d398fe',
    950: '#000000',
  },
}
SCSS
$custom: #d398fe;
$custom-light: #e2b7ff;
$custom-dark: #000000;
JSON
{
  "hex": "#d398fe",
  "rgb": {
    "r": 211,
    "g": 152,
    "b": 254
  },
  "hsl": {
    "h": 274.706,
    "s": 98.077,
    "l": 79.608
  },
  "oklch": {
    "l": 0.77378,
    "c": 0.15293,
    "h": 309.8
  },
  "luminance": 0.43461
}

Semantic roles & 50–950 ramp

primary
#D398FE
secondary
#E3F7D4
accent
#E60061
background
#FEFBFF
surface
#FCF6FF
border
#D5D0D7
text
#151118
muted
#848086

Preview Lab

Preview with #D398FE

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

Preview Lab → · Contrast checker → · Palette generator →

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