#7E7EEA#7E7EEA

#7E7EEA is a light, vivid blue. Relative luminance 0.253; OKLCH L 64.3% C 0.158 H 281.0°. Best body text is #000000 at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#7E7EEA
RGBrgb(126, 126, 234)
HSLhsl(240, 72%, 71%)
HSVhsv(240, 46%, 92%)
CMYKcmyk(46.2%, 46.2%, 0%, 8.2%)
CIE-LABlab(57.36, 27.63, -54.79)
CIE-LCHlch(57.36, 61.36, 296.76°)
OKLaboklab(64.32% 0.0302 -0.1555)
OKLCHoklch(64.32% 0.158 281)
XYZxyz(30.9119, 25.2963, 81.0798)
Luminance0.2530 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7EEA #EAEA7E
analogous
#7EB4EA #7E7EEA #B47EEA
triadic
#7E7EEA #EA7E7E #7EEA7E
tetradic
#7E7EEA #EA7EB4 #EAEA7E #7EEAB4
square
#7E7EEA #EA7EB4 #EAEA7E #7EEAB4
split-complementary
#7E7EEA #EAB47E #B4EA7E
monochromatic
#2121CC #4949E1 #7E7EEA #B3B3F3 #E5E5FB

Accessibility & contrast

On white

3.47
#7E7EEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.06
#7E7EEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7EEA
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7EEA#FFFFFF#000000##000000
##7E7EEA1.003.476.066.06
#FFFFFF3.471.0021.0021.00
#0000006.0621.001.001.00
##0000006.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#518EEE
Deuteranopia (green-blind)
#4A86E8
Tritanopia (blue-blind)
#5995A9
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #7e7eea;
/* rgb */ color: rgb(126, 126, 234);
/* oklch */ color: oklch(64.3% 0.158 281.0);
Tailwind
colors: {
  custom: {
    50: '#a9a3f1',
    500: '#7e7eea',
    950: '#000000',
  },
}
SCSS
$custom: #7e7eea;
$custom-light: #a9a3f1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7eea",
  "rgb": {
    "r": 126,
    "g": 126,
    "b": 234
  },
  "hsl": {
    "h": 240,
    "s": 72,
    "l": 70.588
  },
  "oklch": {
    "l": 0.64323,
    "c": 0.15838,
    "h": 281
  },
  "luminance": 0.25298
}

Semantic roles & 50–950 ramp

primary
#7E7EEA
secondary
#F1F1D3
accent
#D411D4
background
#FAFAFE
surface
#F4F3FD
border
#CECDD5
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #7E7EEA

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

Preview Lab → · Contrast checker → · Palette generator →

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