#D158C2#D158C2

#D158C2 is a light, vivid purple. Relative luminance 0.244; OKLCH L 65.0% C 0.196 H 332.6°. Best body text is #000000 at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#D158C2
RGBrgb(209, 88, 194)
HSLhsl(307, 57%, 58%)
HSVhsv(307, 58%, 82%)
CMYKcmyk(0%, 57.9%, 7.2%, 18%)
CIE-LABlab(56.52, 60.62, -32.95)
CIE-LCHlch(56.52, 68.99, 331.47°)
OKLaboklab(65.04% 0.1739 -0.09)
OKLCHoklch(65.04% 0.196 332.6)
XYZxyz(39.5218, 24.4326, 53.6628)
Luminance0.2443 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D158C2 #58D167
analogous
#A358D1 #D158C2 #D15885
triadic
#D158C2 #C2D158 #58C2D1
tetradic
#D158C2 #D1A358 #58D167 #5885D1
square
#D158C2 #D1A358 #58D167 #5885D1
split-complementary
#D158C2 #85D158 #58D1A3
monochromatic
#89267D #B933A8 #D158C2 #DE88D4 #EBB8E5

Accessibility & contrast

On white

3.57
#D158C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.89
#D158C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D158C2
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D158C2#FFFFFF#000000##000000
##D158C21.003.575.895.89
#FFFFFF3.571.0021.0021.00
#0000005.8921.001.001.00
##0000005.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#547CC5
Deuteranopia (green-blind)
#7A8EBF
Tritanopia (blue-blind)
#D96185
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #d158c2;
/* rgb */ color: rgb(209, 88, 194);
/* oklch */ color: oklch(65.0% 0.196 332.6);
Tailwind
colors: {
  custom: {
    50: '#e28dd4',
    500: '#d158c2',
    950: '#000000',
  },
}
SCSS
$custom: #d158c2;
$custom-light: #e28dd4;
$custom-dark: #000000;
JSON
{
  "hex": "#d158c2",
  "rgb": {
    "r": 209,
    "g": 88,
    "b": 194
  },
  "hsl": {
    "h": 307.438,
    "s": 56.808,
    "l": 58.235
  },
  "oklch": {
    "l": 0.65043,
    "c": 0.1958,
    "h": 332.6
  },
  "luminance": 0.2443
}

Semantic roles & 50–950 ramp

primary
#D158C2
secondary
#AADAB0
accent
#E05B48
background
#FEF9FD
surface
#FCF1FA
border
#D5CBD3
text
#160D14
muted
#847E83

Preview Lab

Preview with #D158C2

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

Preview Lab → · Contrast checker → · Palette generator →

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