#7E6DCD#7E6DCD

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

Color values

HEX#7E6DCD
RGBrgb(126, 109, 205)
HSLhsl(251, 49%, 62%)
HSVhsv(251, 47%, 80%)
CMYKcmyk(38.5%, 46.8%, 0%, 19.6%)
CIE-LABlab(51.59, 29.41, -47.66)
CIE-LCHlch(51.59, 56.01, 301.68°)
OKLaboklab(59.45% 0.0476 -0.1346)
OKLCHoklch(59.45% 0.143 289.5)
XYZxyz(25.0893, 19.7799, 60.2418)
Luminance0.1978 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E6DCD #BCCD6D
analogous
#6D8CCD #7E6DCD #AE6DCD
triadic
#7E6DCD #CD7E6D #6DCD7E
tetradic
#7E6DCD #CD6D8C #BCCD6D #6DCDAE
square
#7E6DCD #CD6D8C #BCCD6D #6DCDAE
split-complementary
#7E6DCD #CDAE6D #8CCD6D
monochromatic
#41318F #5640BC #7E6DCD #A69BDD #CFC8EC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E6DCD#FFFFFF#000000##000000
##7E6DCD1.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)
#4A7DD0
Deuteranopia (green-blind)
#4A79CB
Tritanopia (blue-blind)
#698093
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7e6dcd;
/* rgb */ color: rgb(126, 109, 205);
/* oklch */ color: oklch(59.4% 0.143 289.5);
Tailwind
colors: {
  custom: {
    50: '#a797dd',
    500: '#7e6dcd',
    950: '#000000',
  },
}
SCSS
$custom: #7e6dcd;
$custom-light: #a797dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e6dcd",
  "rgb": {
    "r": 126,
    "g": 109,
    "b": 205
  },
  "hsl": {
    "h": 250.625,
    "s": 48.98,
    "l": 61.569
  },
  "oklch": {
    "l": 0.59445,
    "c": 0.14281,
    "h": 289.5
  },
  "luminance": 0.19781
}

Semantic roles & 50–950 ramp

primary
#7E6DCD
secondary
#D6DDB9
accent
#BC29A2
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#100D15
muted
#7F7E83

Preview Lab

Preview with #7E6DCD

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

Preview Lab → · Contrast checker → · Palette generator →

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