#7E6ECC#7E6ECC

#7E6ECC is a mid, vivid violet. Relative luminance 0.199; OKLCH L 59.6% C 0.140 H 289.3°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#7E6ECC
RGBrgb(126, 110, 204)
HSLhsl(250, 48%, 62%)
HSVhsv(250, 46%, 80%)
CMYKcmyk(38.2%, 46.1%, 0%, 20%)
CIE-LABlab(51.78, 28.54, -46.79)
CIE-LCHlch(51.78, 54.81, 301.39°)
OKLaboklab(59.57% 0.0462 -0.1321)
OKLCHoklch(59.57% 0.14 289.3)
XYZxyz(25.0762, 19.9464, 59.6439)
Luminance0.1995 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E6ECC #BCCC6E
analogous
#6E8DCC #7E6ECC #AD6ECC
triadic
#7E6ECC #CC7E6E #6ECC7E
tetradic
#7E6ECC #CC6E8D #BCCC6E #6ECCAD
square
#7E6ECC #CC6E8D #BCCC6E #6ECCAD
split-complementary
#7E6ECC #CCAD6E #8DCC6E
monochromatic
#41328E #5642BB #7E6ECC #A69BDC #CFC9EC

Accessibility & contrast

On white

4.21
#7E6ECC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#7E6ECC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E6ECC
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E6ECC#FFFFFF#000000##000000
##7E6ECC1.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C7DCF
Deuteranopia (green-blind)
#4C79CA
Tritanopia (blue-blind)
#698193
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7e6ecc;
/* rgb */ color: rgb(126, 110, 204);
/* oklch */ color: oklch(59.6% 0.140 289.3);
Tailwind
colors: {
  custom: {
    50: '#a797dc',
    500: '#7e6ecc',
    950: '#000000',
  },
}
SCSS
$custom: #7e6ecc;
$custom-light: #a797dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7e6ecc",
  "rgb": {
    "r": 126,
    "g": 110,
    "b": 204
  },
  "hsl": {
    "h": 250.213,
    "s": 47.959,
    "l": 61.569
  },
  "oklch": {
    "l": 0.5957,
    "c": 0.13993,
    "h": 289.3
  },
  "luminance": 0.19947
}

Semantic roles & 50–950 ramp

primary
#7E6ECC
secondary
#D6DCB9
accent
#BB2AA3
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#100D15
muted
#7F7E83

Preview Lab

Preview with #7E6ECC

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

Preview Lab → · Contrast checker → · Palette generator →

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