#D398FB#D398FB

#D398FB is a light, vivid violet. Relative luminance 0.433; OKLCH L 77.2% C 0.149 H 310.7°. Best body text is #000000 at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#D398FB
RGBrgb(211, 152, 251)
HSLhsl(276, 93%, 79%)
HSVhsv(276, 39%, 98%)
CMYKcmyk(15.9%, 39.4%, 0%, 1.6%)
CIE-LABlab(71.74, 39.74, -40.95)
CIE-LCHlch(71.74, 57.06, 314.13°)
OKLaboklab(77.24% 0.0974 -0.1133)
OKLCHoklch(77.24% 0.149 310.7)
XYZxyz(55.5017, 43.2712, 96.6764)
Luminance0.4327 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D398FB #C0FB98
analogous
#A298FB #D398FB #FB98F1
triadic
#D398FB #FBD398 #98FBD3
tetradic
#D398FB #FBA298 #C0FB98 #98F1FB
square
#D398FB #FBA298 #C0FB98 #98F1FB
split-complementary
#D398FB #F1FB98 #98FBA2
monochromatic
#A122F6 #BA5DF9 #D398FB #ECD3FD #F2E2FE

Accessibility & contrast

On white

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

On black

9.65
#D398FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D398FB
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D398FB#FFFFFF#000000##000000
##D398FB1.002.189.659.65
#FFFFFF2.181.0021.0021.00
#0000009.6521.001.001.00
##0000009.6521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d398fb;
/* rgb */ color: rgb(211, 152, 251);
/* oklch */ color: oklch(77.2% 0.149 310.7);
Tailwind
colors: {
  custom: {
    50: '#e2b7fd',
    500: '#d398fb',
    950: '#000000',
  },
}
SCSS
$custom: #d398fb;
$custom-light: #e2b7fd;
$custom-dark: #000000;
JSON
{
  "hex": "#d398fb",
  "rgb": {
    "r": 211,
    "g": 152,
    "b": 251
  },
  "hsl": {
    "h": 275.758,
    "s": 92.523,
    "l": 79.02
  },
  "oklch": {
    "l": 0.77239,
    "c": 0.14943,
    "h": 310.7
  },
  "luminance": 0.4327
}

Semantic roles & 50–950 ramp

primary
#D398FB
secondary
#E2F6D5
accent
#E6005D
background
#FEFBFF
surface
#FCF6FF
border
#D5D0D7
text
#151117
muted
#848085

Preview Lab

Preview with #D398FB

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

Preview Lab → · Contrast checker → · Palette generator →

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