#7E6DEC#7E6DEC

#7E6DEC is a mid, vivid blue. Relative luminance 0.214; OKLCH L 61.4% C 0.184 H 285.7°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#7E6DEC
RGBrgb(126, 109, 236)
HSLhsl(248, 77%, 68%)
HSVhsv(248, 54%, 93%)
CMYKcmyk(46.6%, 53.8%, 0%, 7.5%)
CIE-LABlab(53.41, 38.21, -62.24)
CIE-LCHlch(53.41, 73.03, 301.55°)
OKLaboklab(61.4% 0.0499 -0.1774)
OKLCHoklch(61.4% 0.184 285.7)
XYZxyz(29.2087, 21.4277, 81.9375)
Luminance0.2143 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E6DEC #DBEC6D
analogous
#6D9CEC #7E6DEC #BD6DEC
triadic
#7E6DEC #EC7E6D #6DEC7E
tetradic
#7E6DEC #EC6D9C #DBEC6D #6DECBD
square
#7E6DEC #EC6D9C #DBEC6D #6DECBD
split-complementary
#7E6DEC #ECBD6D #9CEC6D
monochromatic
#311AC5 #4E37E5 #7E6DEC #AEA3F3 #DED9FA

Accessibility & contrast

On white

3.97
#7E6DEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#7E6DEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E6DEC
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E6DEC#FFFFFF#000000##000000
##7E6DEC1.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2883F0
Deuteranopia (green-blind)
#237CE9
Tritanopia (blue-blind)
#5989A2
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7e6dec;
/* rgb */ color: rgb(126, 109, 236);
/* oklch */ color: oklch(61.4% 0.184 285.7);
Tailwind
colors: {
  custom: {
    50: '#aa97f3',
    500: '#7e6dec',
    950: '#000000',
  },
}
SCSS
$custom: #7e6dec;
$custom-light: #aa97f3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e6dec",
  "rgb": {
    "r": 126,
    "g": 109,
    "b": 236
  },
  "hsl": {
    "h": 248.031,
    "s": 76.97,
    "l": 67.647
  },
  "oklch": {
    "l": 0.614,
    "c": 0.18433,
    "h": 285.7
  },
  "luminance": 0.21429
}

Semantic roles & 50–950 ramp

primary
#7E6DEC
secondary
#E9EEC7
accent
#D90CBE
background
#FAF9FE
surface
#F5F2FD
border
#CFCCD5
text
#110D17
muted
#807E85

Preview Lab

Preview with #7E6DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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