#7E6DC4#7E6DC4

#7E6DC4 is a mid, vivid violet. Relative luminance 0.194; OKLCH L 58.9% C 0.130 H 290.8°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#7E6DC4
RGBrgb(126, 109, 196)
HSLhsl(252, 42%, 60%)
HSVhsv(252, 44%, 77%)
CMYKcmyk(35.7%, 44.4%, 0%, 23.1%)
CIE-LABlab(51.10, 26.94, -43.28)
CIE-LCHlch(51.10, 50.98, 301.90°)
OKLaboklab(58.92% 0.0464 -0.1218)
OKLCHoklch(58.92% 0.13 290.8)
XYZxyz(24.0340, 19.3578, 54.6840)
Luminance0.1936 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E6DC4 #B3C46D
analogous
#6D88C4 #7E6DC4 #A96DC4
triadic
#7E6DC4 #C47E6D #6DC47E
tetradic
#7E6DC4 #C46D88 #B3C46D #6DC4A9
square
#7E6DC4 #C46D88 #B3C46D #6DC4A9
split-complementary
#7E6DC4 #C4A96D #88C46D
monochromatic
#443582 #5A46AE #7E6DC4 #A599D6 #CBC4E7

Accessibility & contrast

On white

4.31
#7E6DC4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#7E6DC4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E6DC4
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E6DC4#FFFFFF#000000##000000
##7E6DC41.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#507BC7
Deuteranopia (green-blind)
#5178C2
Tritanopia (blue-blind)
#6D7E8F
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7e6dc4;
/* rgb */ color: rgb(126, 109, 196);
/* oklch */ color: oklch(58.9% 0.130 290.8);
Tailwind
colors: {
  custom: {
    50: '#a697d6',
    500: '#7e6dc4',
    950: '#000000',
  },
}
SCSS
$custom: #7e6dc4;
$custom-light: #a697d6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e6dc4",
  "rgb": {
    "r": 126,
    "g": 109,
    "b": 196
  },
  "hsl": {
    "h": 251.724,
    "s": 42.439,
    "l": 59.804
  },
  "oklch": {
    "l": 0.58922,
    "c": 0.13037,
    "h": 290.8
  },
  "luminance": 0.19358
}

Semantic roles & 50–950 ramp

primary
#7E6DC4
secondary
#D1D7B6
accent
#D256BA
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#100D14
muted
#7F7E83

Preview Lab

Preview with #7E6DC4

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

Preview Lab → · Contrast checker → · Palette generator →

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