#D157E8#D157E8

#D157E8 is a light, highly saturated purple. Relative luminance 0.262; OKLCH L 66.9% C 0.229 H 321.0°. Best body text is #000000 at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#D157E8
RGBrgb(209, 87, 232)
HSLhsl(290, 76%, 63%)
HSVhsv(290, 63%, 91%)
CMYKcmyk(9.9%, 62.5%, 0%, 9%)
CIE-LABlab(58.23, 67.63, -51.78)
CIE-LCHlch(58.23, 85.17, 322.56°)
OKLaboklab(66.89% 0.1781 -0.1444)
OKLCHoklch(66.89% 0.229 321)
XYZxyz(44.2665, 26.2001, 79.0537)
Luminance0.2620 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D157E8 #6EE857
analogous
#8957E8 #D157E8 #E857B6
triadic
#D157E8 #E8D157 #57E8D1
tetradic
#D157E8 #E88957 #6EE857 #57B6E8
square
#D157E8 #E88957 #6EE857 #57B6E8
split-complementary
#D157E8 #B6E857 #57E889
monochromatic
#9518AD #C221E1 #D157E8 #E08DEF #EEC3F7

Accessibility & contrast

On white

3.37
#D157E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.24
#D157E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D157E8
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D157E8#FFFFFF#000000##000000
##D157E81.003.376.246.24
#FFFFFF3.371.0021.0021.00
#0000006.2421.001.001.00
##0000006.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3283EC
Deuteranopia (green-blind)
#6690E4
Tritanopia (blue-blind)
#D36F98
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #d157e8;
/* rgb */ color: rgb(209, 87, 232);
/* oklch */ color: oklch(66.9% 0.229 321.0);
Tailwind
colors: {
  custom: {
    50: '#e28ef0',
    500: '#d157e8',
    950: '#000000',
  },
}
SCSS
$custom: #d157e8;
$custom-light: #e28ef0;
$custom-dark: #000000;
JSON
{
  "hex": "#d157e8",
  "rgb": {
    "r": 209,
    "g": 87,
    "b": 232
  },
  "hsl": {
    "h": 290.483,
    "s": 75.916,
    "l": 62.549
  },
  "oklch": {
    "l": 0.66894,
    "c": 0.22927,
    "h": 321
  },
  "luminance": 0.26198
}

Semantic roles & 50–950 ramp

primary
#D157E8
secondary
#BBE8B3
accent
#D80D2E
background
#FEF9FE
surface
#FDF1FD
border
#D5CBD5
text
#160D16
muted
#847E84

Preview Lab

Preview with #D157E8

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

Preview Lab → · Contrast checker → · Palette generator →

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