#D98FFB#D98FFB

#D98FFB is a light, vivid purple. Relative luminance 0.414; OKLCH L 76.4% C 0.167 H 314.5°. Best body text is #000000 at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#D98FFB
RGBrgb(217, 143, 251)
HSLhsl(281, 93%, 77%)
HSVhsv(281, 43%, 98%)
CMYKcmyk(13.5%, 43%, 0%, 1.6%)
CIE-LABlab(70.43, 46.24, -42.96)
CIE-LCHlch(70.43, 63.12, 317.11°)
OKLaboklab(76.4% 0.1168 -0.1189)
OKLCHoklch(76.4% 0.167 314.5)
XYZxyz(55.8475, 41.3630, 96.2900)
Luminance0.4136 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D98FFB #B1FB8F
analogous
#A38FFB #D98FFB #FB8FE7
triadic
#D98FFB #FBD98F #8FFBD9
tetradic
#D98FFB #FBA38F #B1FB8F #8FE7FB
square
#D98FFB #FBA38F #B1FB8F #8FE7FB
split-complementary
#D98FFB #E7FB8F #8FFBA3
monochromatic
#B119F7 #C554F9 #D98FFB #EDCAFD #F5E1FE

Accessibility & contrast

On white

2.26
#D98FFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.27
#D98FFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D98FFB
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D98FFB#FFFFFF#000000##000000
##D98FFB1.002.269.279.27
#FFFFFF2.261.0021.0021.00
#0000009.2721.001.001.00
##0000009.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7BA8FF
Deuteranopia (green-blind)
#8EAEF8
Tritanopia (blue-blind)
#D79EB9
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #d98ffb;
/* rgb */ color: rgb(217, 143, 251);
/* oklch */ color: oklch(76.4% 0.167 314.5);
Tailwind
colors: {
  custom: {
    50: '#e6b1fd',
    500: '#d98ffb',
    950: '#000000',
  },
}
SCSS
$custom: #d98ffb;
$custom-light: #e6b1fd;
$custom-dark: #000000;
JSON
{
  "hex": "#d98ffb",
  "rgb": {
    "r": 217,
    "g": 143,
    "b": 251
  },
  "hsl": {
    "h": 281.111,
    "s": 93.103,
    "l": 77.255
  },
  "oklch": {
    "l": 0.76395,
    "c": 0.16671,
    "h": 314.5
  },
  "luminance": 0.41362
}

Semantic roles & 50–950 ramp

primary
#D98FFB
secondary
#DFF6D5
accent
#E60048
background
#FEFBFF
surface
#FDF6FF
border
#D5D0D7
text
#161117
muted
#848085

Preview Lab

Preview with #D98FFB

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

Preview Lab → · Contrast checker → · Palette generator →

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