#7E6FC4#7E6FC4

#7E6FC4 is a mid, vivid violet. Relative luminance 0.198; OKLCH L 59.3% C 0.127 H 290.1°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#7E6FC4
RGBrgb(126, 111, 196)
HSLhsl(251, 42%, 60%)
HSVhsv(251, 43%, 77%)
CMYKcmyk(35.7%, 43.4%, 0%, 23.1%)
CIE-LABlab(51.60, 25.75, -42.50)
CIE-LCHlch(51.60, 49.69, 301.21°)
OKLaboklab(59.3% 0.0437 -0.1196)
OKLCHoklch(59.3% 0.127 290.1)
XYZxyz(24.2498, 19.7894, 54.7559)
Luminance0.1979 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E6FC4 #B5C46F
analogous
#6F8BC4 #7E6FC4 #A86FC4
triadic
#7E6FC4 #C47E6F #6FC47E
tetradic
#7E6FC4 #C46F8B #B5C46F #6FC4A8
square
#7E6FC4 #C46F8B #B5C46F #6FC4A8
split-complementary
#7E6FC4 #C4A86F #8BC46F
monochromatic
#433683 #5A47AE #7E6FC4 #A59AD6 #CCC6E8

Accessibility & contrast

On white

4.24
#7E6FC4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#7E6FC4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E6FC4
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E6FC4#FFFFFF#000000##000000
##7E6FC41.004.244.964.96
#FFFFFF4.241.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#537DC7
Deuteranopia (green-blind)
#5479C2
Tritanopia (blue-blind)
#6C7F90
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7e6fc4;
/* rgb */ color: rgb(126, 111, 196);
/* oklch */ color: oklch(59.3% 0.127 290.1);
Tailwind
colors: {
  custom: {
    50: '#a698d6',
    500: '#7e6fc4',
    950: '#000000',
  },
}
SCSS
$custom: #7e6fc4;
$custom-light: #a698d6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e6fc4",
  "rgb": {
    "r": 126,
    "g": 111,
    "b": 196
  },
  "hsl": {
    "h": 250.588,
    "s": 41.872,
    "l": 60.196
  },
  "oklch": {
    "l": 0.59297,
    "c": 0.1273,
    "h": 290.1
  },
  "luminance": 0.1979
}

Semantic roles & 50–950 ramp

primary
#7E6FC4
secondary
#D2D8B7
accent
#B5319E
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#100D14
muted
#7F7E83

Preview Lab

Preview with #7E6FC4

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

Preview Lab → · Contrast checker → · Palette generator →

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