#D398FA#D398FA

#D398FA is a light, vivid violet. Relative luminance 0.432; OKLCH L 77.2% C 0.148 H 311.0°. Best body text is #000000 at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#D398FA
RGBrgb(211, 152, 250)
HSLhsl(276, 91%, 79%)
HSVhsv(276, 39%, 98%)
CMYKcmyk(15.6%, 39.2%, 0%, 2%)
CIE-LABlab(71.70, 39.52, -40.48)
CIE-LCHlch(71.70, 56.57, 314.32°)
OKLaboklab(77.19% 0.0972 -0.112)
OKLCHoklch(77.19% 0.148 311)
XYZxyz(55.3445, 43.2083, 95.8485)
Luminance0.4321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D398FA #BFFA98
analogous
#A298FA #D398FA #FA98F0
triadic
#D398FA #FAD398 #98FAD3
tetradic
#D398FA #FAA298 #BFFA98 #98F0FA
square
#D398FA #FAA298 #BFFA98 #98F0FA
split-complementary
#D398FA #F0FA98 #98FAA2
monochromatic
#A123F4 #BA5EF7 #D398FA #ECD2FD #F3E2FE

Accessibility & contrast

On white

2.18
#D398FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.64
#D398FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D398FA
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D398FA#FFFFFF#000000##000000
##D398FA1.002.189.649.64
#FFFFFF2.181.0021.0021.00
#0000009.6421.001.001.00
##0000009.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#85ADFE
Deuteranopia (green-blind)
#93B1F7
Tritanopia (blue-blind)
#CFA6BD
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #d398fa;
/* rgb */ color: rgb(211, 152, 250);
/* oklch */ color: oklch(77.2% 0.148 311.0);
Tailwind
colors: {
  custom: {
    50: '#e2b7fc',
    500: '#d398fa',
    950: '#000000',
  },
}
SCSS
$custom: #d398fa;
$custom-light: #e2b7fc;
$custom-dark: #000000;
JSON
{
  "hex": "#d398fa",
  "rgb": {
    "r": 211,
    "g": 152,
    "b": 250
  },
  "hsl": {
    "h": 276.122,
    "s": 90.741,
    "l": 78.824
  },
  "oklch": {
    "l": 0.77193,
    "c": 0.14826,
    "h": 311
  },
  "luminance": 0.43207
}

Semantic roles & 50–950 ramp

primary
#D398FA
secondary
#E2F6D5
accent
#E6005B
background
#FEFBFF
surface
#FCF6FF
border
#D5D0D7
text
#151117
muted
#848085

Preview Lab

Preview with #D398FA

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

Preview Lab → · Contrast checker → · Palette generator →

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