#7E6BCC#7E6BCC

#7E6BCC is a mid, vivid violet. Relative luminance 0.193; OKLCH L 59.0% C 0.144 H 290.3°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#7E6BCC
RGBrgb(126, 107, 204)
HSLhsl(252, 49%, 61%)
HSVhsv(252, 48%, 80%)
CMYKcmyk(38.2%, 47.5%, 0%, 20%)
CIE-LABlab(51.05, 30.32, -47.95)
CIE-LCHlch(51.05, 56.73, 302.31°)
OKLaboklab(59.02% 0.05 -0.1355)
OKLCHoklch(59.02% 0.144 290.3)
XYZxyz(24.7580, 19.3100, 59.5378)
Luminance0.1931 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E6BCC #B9CC6B
analogous
#6B88CC #7E6BCC #AE6BCC
triadic
#7E6BCC #CC7E6B #6BCC7E
tetradic
#7E6BCC #CC6B88 #B9CC6B #6BCCAE
square
#7E6BCC #CC6B88 #B9CC6B #6BCCAE
split-complementary
#7E6BCC #CCAE6B #88CC6B
monochromatic
#42308C #5840BA #7E6BCC #A699DC #CDC6EB

Accessibility & contrast

On white

4.32
#7E6BCC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#7E6BCC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E6BCC
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E6BCC#FFFFFF#000000##000000
##7E6BCC1.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#477BCF
Deuteranopia (green-blind)
#4877CA
Tritanopia (blue-blind)
#6A7E92
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7e6bcc;
/* rgb */ color: rgb(126, 107, 204);
/* oklch */ color: oklch(59.0% 0.144 290.3);
Tailwind
colors: {
  custom: {
    50: '#a795dc',
    500: '#7e6bcc',
    950: '#000000',
  },
}
SCSS
$custom: #7e6bcc;
$custom-light: #a795dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7e6bcc",
  "rgb": {
    "r": 126,
    "g": 107,
    "b": 204
  },
  "hsl": {
    "h": 251.753,
    "s": 48.744,
    "l": 60.98
  },
  "oklch": {
    "l": 0.59021,
    "c": 0.14444,
    "h": 290.3
  },
  "luminance": 0.19311
}

Semantic roles & 50–950 ramp

primary
#7E6BCC
secondary
#D5DCB7
accent
#BC299F
background
#FAF9FD
surface
#F4F1FB
border
#CECBD4
text
#100D15
muted
#7F7E83

Preview Lab

Preview with #7E6BCC

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

Preview Lab → · Contrast checker → · Palette generator →

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