#D157E7#D157E7

#D157E7 is a light, highly saturated purple. Relative luminance 0.261; OKLCH L 66.8% C 0.228 H 321.2°. Best body text is #000000 at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#D157E7
RGBrgb(209, 87, 231)
HSLhsl(291, 75%, 62%)
HSVhsv(291, 62%, 91%)
CMYKcmyk(9.5%, 62.3%, 0%, 9.4%)
CIE-LABlab(58.17, 67.44, -51.30)
CIE-LCHlch(58.17, 84.74, 322.74°)
OKLaboklab(66.84% 0.1781 -0.143)
OKLCHoklch(66.84% 0.228 321.2)
XYZxyz(44.1249, 26.1434, 78.3078)
Luminance0.2614 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D157E7 #6DE757
analogous
#8957E7 #D157E7 #E757B5
triadic
#D157E7 #E7D157 #57E7D1
tetradic
#D157E7 #E78957 #6DE757 #57B5E7
square
#D157E7 #E78957 #6DE757 #57B5E7
split-complementary
#D157E7 #B5E757 #57E789
monochromatic
#9518AB #C221DF #D157E7 #E08DEF #EEC2F6

Accessibility & contrast

On white

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

On black

6.23
#D157E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D157E7
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D157E7#FFFFFF#000000##000000
##D157E71.003.376.236.23
#FFFFFF3.371.0021.0021.00
#0000006.2321.001.001.00
##0000006.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3383EB
Deuteranopia (green-blind)
#6690E3
Tritanopia (blue-blind)
#D36E98
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #d157e7;
/* rgb */ color: rgb(209, 87, 231);
/* oklch */ color: oklch(66.8% 0.228 321.2);
Tailwind
colors: {
  custom: {
    50: '#e28eef',
    500: '#d157e7',
    950: '#000000',
  },
}
SCSS
$custom: #d157e7;
$custom-light: #e28eef;
$custom-dark: #000000;
JSON
{
  "hex": "#d157e7",
  "rgb": {
    "r": 209,
    "g": 87,
    "b": 231
  },
  "hsl": {
    "h": 290.833,
    "s": 75,
    "l": 62.353
  },
  "oklch": {
    "l": 0.66838,
    "c": 0.22839,
    "h": 321.2
  },
  "luminance": 0.26141
}

Semantic roles & 50–950 ramp

primary
#D157E7
secondary
#BBE7B3
accent
#D70E2D
background
#FEF9FE
surface
#FDF1FD
border
#D5CBD5
text
#160D16
muted
#847E84

Preview Lab

Preview with #D157E7

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

Preview Lab → · Contrast checker → · Palette generator →

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