#7E6BB2#7E6BB2

#7E6BB2 is a mid, moderate violet. Relative luminance 0.182; OKLCH L 57.6% C 0.108 H 295.1°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#7E6BB2
RGBrgb(126, 107, 178)
HSLhsl(256, 32%, 56%)
HSVhsv(256, 40%, 70%)
CMYKcmyk(29.2%, 39.9%, 0%, 30.2%)
CIE-LABlab(49.70, 23.34, -35.11)
CIE-LCHlch(49.70, 42.16, 303.61°)
OKLaboklab(57.56% 0.0459 -0.0981)
OKLCHoklch(57.56% 0.108 295.1)
XYZxyz(21.8958, 18.1651, 44.4635)
Luminance0.1817 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E6BB2 #9FB26B
analogous
#6B7BB2 #7E6BB2 #A16BB2
triadic
#7E6BB2 #B27E6B #6BB27E
tetradic
#7E6BB2 #B26B7B #9FB26B #6BB2A1
square
#7E6BB2 #B26B7B #9FB26B #6BB2A1
split-complementary
#7E6BB2 #B2A16B #7BB26B
monochromatic
#45386B #5F4D93 #7E6BB2 #A193C7 #C4BCDC

Accessibility & contrast

On white

4.53
#7E6BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#7E6BB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E6BB2
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E6BB2#FFFFFF#000000##000000
##7E6BB21.004.534.634.63
#FFFFFF4.531.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5777B5
Deuteranopia (green-blind)
#5A75B0
Tritanopia (blue-blind)
#737886
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7e6bb2;
/* rgb */ color: rgb(126, 107, 178);
/* oklch */ color: oklch(57.6% 0.108 295.1);
Tailwind
colors: {
  custom: {
    50: '#a595c9',
    500: '#7e6bb2',
    950: '#000000',
  },
}
SCSS
$custom: #7e6bb2;
$custom-light: #a595c9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e6bb2",
  "rgb": {
    "r": 126,
    "g": 107,
    "b": 178
  },
  "hsl": {
    "h": 256.056,
    "s": 31.556,
    "l": 55.882
  },
  "oklch": {
    "l": 0.57559,
    "c": 0.10831,
    "h": 295.1
  },
  "luminance": 0.18165
}

Semantic roles & 50–950 ramp

primary
#7E6BB2
secondary
#C3CBAE
accent
#C860AC
background
#FAF9FC
surface
#F4F1F8
border
#CECBD1
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #7E6BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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