#DC7EFB#DC7EFB

#DC7EFB is a light, vivid purple. Relative luminance 0.371; OKLCH L 74.2% C 0.195 H 317.2°. Best body text is #000000 at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#DC7EFB
RGBrgb(220, 126, 251)
HSLhsl(285, 94%, 74%)
HSVhsv(285, 50%, 98%)
CMYKcmyk(12.4%, 49.8%, 0%, 1.6%)
CIE-LABlab(67.36, 55.81, -47.76)
CIE-LCHlch(67.36, 73.46, 319.45°)
OKLaboklab(74.18% 0.1434 -0.1327)
OKLCHoklch(74.18% 0.195 317.2)
XYZxyz(54.3861, 37.1042, 95.5450)
Luminance0.3710 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DC7EFB #9DFB7E
analogous
#9E7EFB #DC7EFB #FB7EDC
triadic
#DC7EFB #FBDC7E #7EFBDC
tetradic
#DC7EFB #FB9E7E #9DFB7E #7EDCFB
square
#DC7EFB #FB9E7E #9DFB7E #7EDCFB
split-complementary
#DC7EFB #DCFB7E #7EFB9E
monochromatic
#BC08F7 #CC43F9 #DC7EFB #ECB9FD #F7E1FE

Accessibility & contrast

On white

2.49
#DC7EFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.42
#DC7EFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DC7EFB
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DC7EFB#FFFFFF#000000##000000
##DC7EFB1.002.498.428.42
#FFFFFF2.491.0021.0021.00
#0000008.4221.001.001.00
##0000008.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#659EFF
Deuteranopia (green-blind)
#82A7F8
Tritanopia (blue-blind)
#DB90B1
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #dc7efb;
/* rgb */ color: rgb(220, 126, 251);
/* oklch */ color: oklch(74.2% 0.195 317.2);
Tailwind
colors: {
  custom: {
    50: '#e9a6fd',
    500: '#dc7efb',
    950: '#000000',
  },
}
SCSS
$custom: #dc7efb;
$custom-light: #e9a6fd;
$custom-dark: #000000;
JSON
{
  "hex": "#dc7efb",
  "rgb": {
    "r": 220,
    "g": 126,
    "b": 251
  },
  "hsl": {
    "h": 285.12,
    "s": 93.985,
    "l": 73.922
  },
  "oklch": {
    "l": 0.7418,
    "c": 0.19536,
    "h": 317.2
  },
  "luminance": 0.37102
}

Semantic roles & 50–950 ramp

primary
#DC7EFB
secondary
#DDF6D5
accent
#E60039
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#161018
muted
#847F86

Preview Lab

Preview with #DC7EFB

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

Preview Lab → · Contrast checker → · Palette generator →

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