#7E6CE1#7E6CE1

#7E6CE1 is a mid, vivid blue. Relative luminance 0.206; OKLCH L 60.5% C 0.171 H 287.2°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#7E6CE1
RGBrgb(126, 108, 225)
HSLhsl(249, 66%, 65%)
HSVhsv(249, 52%, 88%)
CMYKcmyk(44%, 52%, 0%, 11.8%)
CIE-LABlab(52.50, 35.64, -57.53)
CIE-LCHlch(52.50, 67.67, 301.78°)
OKLaboklab(60.51% 0.0506 -0.1636)
OKLCHoklch(60.51% 0.171 287.2)
XYZxyz(27.5535, 20.5959, 73.7432)
Luminance0.2060 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E6CE1 #CFE16C
analogous
#6C94E1 #7E6CE1 #B96CE1
triadic
#7E6CE1 #E17E6C #6CE17E
tetradic
#7E6CE1 #E16C94 #CFE16C #6CE1B9
square
#7E6CE1 #E16C94 #CFE16C #6CE1B9
split-complementary
#7E6CE1 #E1B96C #94E16C
monochromatic
#3924AF #5139D7 #7E6CE1 #AB9FEB #D7D2F6

Accessibility & contrast

On white

4.10
#7E6CE1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#7E6CE1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E6CE1
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E6CE1#FFFFFF#000000##000000
##7E6CE11.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3580E5
Deuteranopia (green-blind)
#347ADE
Tritanopia (blue-blind)
#60859C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #7e6ce1;
/* rgb */ color: rgb(126, 108, 225);
/* oklch */ color: oklch(60.5% 0.171 287.2);
Tailwind
colors: {
  custom: {
    50: '#a996eb',
    500: '#7e6ce1',
    950: '#000000',
  },
}
SCSS
$custom: #7e6ce1;
$custom-light: #a996eb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e6ce1",
  "rgb": {
    "r": 126,
    "g": 108,
    "b": 225
  },
  "hsl": {
    "h": 249.231,
    "s": 66.102,
    "l": 65.294
  },
  "oklch": {
    "l": 0.60505,
    "c": 0.17125,
    "h": 287.2
  },
  "luminance": 0.20597
}

Semantic roles & 50–950 ramp

primary
#7E6CE1
secondary
#E2E8C1
accent
#CE18B2
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #7E6CE1

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

Preview Lab → · Contrast checker → · Palette generator →

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