#7E4CCD#7E4CCD

#7E4CCD is a mid, vivid violet. Relative luminance 0.140; OKLCH L 54.0% C 0.191 H 297.5°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#7E4CCD
RGBrgb(126, 76, 205)
HSLhsl(263, 56%, 55%)
HSVhsv(263, 63%, 80%)
CMYKcmyk(38.5%, 62.9%, 0%, 19.6%)
CIE-LABlab(44.25, 48.25, -59.43)
CIE-LCHlch(44.25, 76.55, 309.07°)
OKLaboklab(54.02% 0.0879 -0.1692)
OKLCHoklch(54.02% 0.191 297.5)
XYZxyz(22.2053, 14.0119, 59.2804)
Luminance0.1401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4CCD #9BCD4C
analogous
#4C5ACD #7E4CCD #BF4CCD
triadic
#7E4CCD #CD7E4C #4CCD7E
tetradic
#7E4CCD #CD4C5A #9BCD4C #4CCDBF
square
#7E4CCD #CD4C5A #9BCD4C #4CCDBF
split-complementary
#7E4CCD #CDBF4C #5ACD4C
monochromatic
#45237C #6030AC #7E4CCD #A07CDA #C3ACE8

Accessibility & contrast

On white

5.52
#7E4CCD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#7E4CCD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4CCD
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4CCD#FFFFFF#000000##FFFFFF
##7E4CCD1.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D1
Deuteranopia (green-blind)
#0067CA
Tritanopia (blue-blind)
#6B6986
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7e4ccd;
/* rgb */ color: rgb(126, 76, 205);
/* oklch */ color: oklch(54.0% 0.191 297.5);
Tailwind
colors: {
  custom: {
    50: '#a981dd',
    500: '#7e4ccd',
    950: '#000000',
  },
}
SCSS
$custom: #7e4ccd;
$custom-light: #a981dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4ccd",
  "rgb": {
    "r": 126,
    "g": 76,
    "b": 205
  },
  "hsl": {
    "h": 263.256,
    "s": 56.332,
    "l": 55.098
  },
  "oklch": {
    "l": 0.54019,
    "c": 0.19072,
    "h": 297.5
  },
  "luminance": 0.14012
}

Semantic roles & 50–950 ramp

primary
#7E4CCD
secondary
#C0D59F
accent
#E048A5
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7E4CCD

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

Preview Lab → · Contrast checker → · Palette generator →

#7E4CCD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva