#7E6DCA#7E6DCA

#7E6DCA is a mid, vivid violet. Relative luminance 0.196; OKLCH L 59.3% C 0.139 H 289.9°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#7E6DCA
RGBrgb(126, 109, 202)
HSLhsl(251, 47%, 61%)
HSVhsv(251, 46%, 79%)
CMYKcmyk(37.6%, 46%, 0%, 20.8%)
CIE-LABlab(51.42, 28.58, -46.21)
CIE-LCHlch(51.42, 54.33, 301.74°)
OKLaboklab(59.27% 0.0472 -0.1304)
OKLCHoklch(59.27% 0.139 289.9)
XYZxyz(24.7306, 19.6365, 58.3529)
Luminance0.1964 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E6DCA #B9CA6D
analogous
#6D8ACA #7E6DCA #AC6DCA
triadic
#7E6DCA #CA7E6D #6DCA7E
tetradic
#7E6DCA #CA6D8A #B9CA6D #6DCAAC
square
#7E6DCA #CA6D8A #B9CA6D #6DCAAC
split-complementary
#7E6DCA #CAAC6D #8ACA6D
monochromatic
#42328A #5843B7 #7E6DCA #A69ADA #CDC7EB

Accessibility & contrast

On white

4.26
#7E6DCA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#7E6DCA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E6DCA
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E6DCA#FFFFFF#000000##000000
##7E6DCA1.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C7CCD
Deuteranopia (green-blind)
#4D78C8
Tritanopia (blue-blind)
#6A7F92
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7e6dca;
/* rgb */ color: rgb(126, 109, 202);
/* oklch */ color: oklch(59.3% 0.139 289.9);
Tailwind
colors: {
  custom: {
    50: '#a797da',
    500: '#7e6dca',
    950: '#000000',
  },
}
SCSS
$custom: #7e6dca;
$custom-light: #a797da;
$custom-dark: #000000;
JSON
{
  "hex": "#7e6dca",
  "rgb": {
    "r": 126,
    "g": 109,
    "b": 202
  },
  "hsl": {
    "h": 250.968,
    "s": 46.734,
    "l": 60.98
  },
  "oklch": {
    "l": 0.59268,
    "c": 0.13868,
    "h": 289.9
  },
  "luminance": 0.19637
}

Semantic roles & 50–950 ramp

primary
#7E6DCA
secondary
#D5DBB8
accent
#BA2CA0
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#100D15
muted
#7F7E83

Preview Lab

Preview with #7E6DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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