#7E81EB#7E81EB

#7E81EB is a light, vivid blue. Relative luminance 0.261; OKLCH L 64.9% C 0.156 H 279.9°. Best body text is #000000 at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#7E81EB
RGBrgb(126, 129, 235)
HSLhsl(238, 73%, 71%)
HSVhsv(238, 46%, 92%)
CMYKcmyk(46.4%, 45.1%, 0%, 7.8%)
CIE-LABlab(58.16, 26.15, -54.07)
CIE-LCHlch(58.16, 60.06, 295.81°)
OKLaboklab(64.95% 0.0268 -0.1534)
OKLCHoklch(64.95% 0.156 279.9)
XYZxyz(31.4453, 26.1327, 81.9684)
Luminance0.2613 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E81EB #EBE87E
analogous
#7EB7EB #7E81EB #B17EEB
triadic
#7E81EB #EB7E81 #81EB7E
tetradic
#7E81EB #EB7EB7 #EBE87E #7EEBB1
square
#7E81EB #EB7EB7 #EBE87E #7EEBB1
split-complementary
#7E81EB #EBB17E #B7EB7E
monochromatic
#2025CF #494DE3 #7E81EB #B3B5F3 #E5E5FB

Accessibility & contrast

On white

3.37
#7E81EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.23
#7E81EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E81EB
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E81EB#FFFFFF#000000##000000
##7E81EB1.003.376.236.23
#FFFFFF3.371.0021.0021.00
#0000006.2321.001.001.00
##0000006.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5690EF
Deuteranopia (green-blind)
#4E88E9
Tritanopia (blue-blind)
#5897AB
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #7e81eb;
/* rgb */ color: rgb(126, 129, 235);
/* oklch */ color: oklch(64.9% 0.156 279.9);
Tailwind
colors: {
  custom: {
    50: '#a9a5f2',
    500: '#7e81eb',
    950: '#000000',
  },
}
SCSS
$custom: #7e81eb;
$custom-light: #a9a5f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e81eb",
  "rgb": {
    "r": 126,
    "g": 129,
    "b": 235
  },
  "hsl": {
    "h": 238.349,
    "s": 73.154,
    "l": 70.784
  },
  "oklch": {
    "l": 0.64947,
    "c": 0.15568,
    "h": 279.9
  },
  "luminance": 0.26134
}

Semantic roles & 50–950 ramp

primary
#7E81EB
secondary
#F1F0D4
accent
#D010D5
background
#FAFAFE
surface
#F4F4FD
border
#CECED5
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #7E81EB

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

Preview Lab → · Contrast checker → · Palette generator →

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