#D798CB#D798CB

#D798CB is a light, moderate pink. Relative luminance 0.412; OKLCH L 75.7% C 0.100 H 333.5°. Best body text is #000000 at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#D798CB
RGBrgb(215, 152, 203)
HSLhsl(311, 44%, 72%)
HSVhsv(311, 29%, 84%)
CMYKcmyk(0%, 29.3%, 5.6%, 15.7%)
CIE-LABlab(70.33, 31.61, -16.76)
CIE-LCHlch(70.33, 35.78, 332.07°)
OKLaboklab(75.66% 0.0899 -0.0449)
OKLCHoklch(75.66% 0.1 333.5)
XYZxyz(50.0314, 41.2173, 61.8086)
Luminance0.4122 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D798CB #98D7A4
analogous
#C498D7 #D798CB #D798AC
triadic
#D798CB #CBD798 #98CBD7
tetradic
#D798CB #D7C498 #98D7A4 #98ACD7
square
#D798CB #D7C498 #98D7A4 #98ACD7
split-complementary
#D798CB #ACD798 #98D7C4
monochromatic
#B0449C #C66CB5 #D798CB #E8C4E1 #F6E9F4

Accessibility & contrast

On white

2.27
#D798CB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.24
#D798CB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D798CB
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D798CB#FFFFFF#000000##000000
##D798CB1.002.279.249.24
#FFFFFF2.271.0021.0021.00
#0000009.2421.001.001.00
##0000009.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#97A7CD
Deuteranopia (green-blind)
#A6AFC9
Tritanopia (blue-blind)
#DD9BAA
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #d798cb;
/* rgb */ color: rgb(215, 152, 203);
/* oklch */ color: oklch(75.7% 0.100 333.5);
Tailwind
colors: {
  custom: {
    50: '#e4b7db',
    500: '#d798cb',
    950: '#000000',
  },
}
SCSS
$custom: #d798cb;
$custom-light: #e4b7db;
$custom-dark: #000000;
JSON
{
  "hex": "#d798cb",
  "rgb": {
    "r": 215,
    "g": 152,
    "b": 203
  },
  "hsl": {
    "h": 311.429,
    "s": 44.056,
    "l": 71.961
  },
  "oklch": {
    "l": 0.75662,
    "c": 0.10049,
    "h": 333.5
  },
  "luminance": 0.41215
}

Semantic roles & 50–950 ramp

primary
#D798CB
secondary
#DEEDE1
accent
#B7482E
background
#FEFBFD
surface
#FCF6FA
border
#D5D0D3
text
#161115
muted
#848083

Preview Lab

Preview with #D798CB

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

Preview Lab → · Contrast checker → · Palette generator →

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