#7E6DEB#7E6DEB

#7E6DEB is a mid, vivid blue. Relative luminance 0.214; OKLCH L 61.3% C 0.183 H 285.8°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#7E6DEB
RGBrgb(126, 109, 235)
HSLhsl(248, 76%, 67%)
HSVhsv(248, 54%, 92%)
CMYKcmyk(46.4%, 53.6%, 0%, 7.8%)
CIE-LABlab(53.35, 37.92, -61.78)
CIE-LCHlch(53.35, 72.49, 301.54°)
OKLaboklab(61.33% 0.0499 -0.1761)
OKLCHoklch(61.33% 0.183 285.8)
XYZxyz(29.0638, 21.3698, 81.1745)
Luminance0.2137 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E6DEB #DAEB6D
analogous
#6D9BEB #7E6DEB #BD6DEB
triadic
#7E6DEB #EB7E6D #6DEB7E
tetradic
#7E6DEB #EB6D9B #DAEB6D #6DEBBD
square
#7E6DEB #EB6D9B #DAEB6D #6DEBBD
split-complementary
#7E6DEB #EBBD6D #9BEB6D
monochromatic
#311BC3 #4E37E4 #7E6DEB #AEA3F2 #DDD9FA

Accessibility & contrast

On white

3.98
#7E6DEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#7E6DEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E6DEB
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E6DEB#FFFFFF#000000##000000
##7E6DEB1.003.985.275.27
#FFFFFF3.981.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2983EF
Deuteranopia (green-blind)
#257CE8
Tritanopia (blue-blind)
#5A89A2
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7e6deb;
/* rgb */ color: rgb(126, 109, 235);
/* oklch */ color: oklch(61.3% 0.183 285.8);
Tailwind
colors: {
  custom: {
    50: '#aa97f2',
    500: '#7e6deb',
    950: '#000000',
  },
}
SCSS
$custom: #7e6deb;
$custom-light: #aa97f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e6deb",
  "rgb": {
    "r": 126,
    "g": 109,
    "b": 235
  },
  "hsl": {
    "h": 248.095,
    "s": 75.904,
    "l": 67.451
  },
  "oklch": {
    "l": 0.61333,
    "c": 0.18303,
    "h": 285.8
  },
  "luminance": 0.21371
}

Semantic roles & 50–950 ramp

primary
#7E6DEB
secondary
#E8EEC6
accent
#D80DBD
background
#FAF9FE
surface
#F5F2FD
border
#CFCCD5
text
#110D17
muted
#807E85

Preview Lab

Preview with #7E6DEB

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

Preview Lab → · Contrast checker → · Palette generator →

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