#7E7DEC#7E7DEC

#7E7DEC is a light, vivid blue. Relative luminance 0.252; OKLCH L 64.3% C 0.162 H 281.2°. Best body text is #000000 at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#7E7DEC
RGBrgb(126, 125, 236)
HSLhsl(241, 74%, 71%)
HSVhsv(241, 47%, 93%)
CMYKcmyk(46.6%, 47%, 0%, 7.5%)
CIE-LABlab(57.23, 28.81, -56.12)
CIE-LCHlch(57.23, 63.08, 297.17°)
OKLaboklab(64.26% 0.0316 -0.1594)
OKLCHoklch(64.26% 0.162 281.2)
XYZxyz(31.0736, 25.1574, 82.5592)
Luminance0.2516 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7DEC #EBEC7D
analogous
#7DB3EC #7E7DEC #B67DEC
triadic
#7E7DEC #EC7E7D #7DEC7E
tetradic
#7E7DEC #EC7DB3 #EBEC7D #7DECB6
square
#7E7DEC #EC7DB3 #EBEC7D #7DECB6
split-complementary
#7E7DEC #ECB67D #B3EC7D
monochromatic
#201ED0 #4948E4 #7E7DEC #B3B2F4 #E5E4FB

Accessibility & contrast

On white

3.48
#7E7DEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.03
#7E7DEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7DEC
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7DEC#FFFFFF#000000##000000
##7E7DEC1.003.486.036.03
#FFFFFF3.481.0021.0021.00
#0000006.0321.001.001.00
##0000006.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E8DF0
Deuteranopia (green-blind)
#4685EA
Tritanopia (blue-blind)
#5795A9
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #7e7dec;
/* rgb */ color: rgb(126, 125, 236);
/* oklch */ color: oklch(64.3% 0.162 281.2);
Tailwind
colors: {
  custom: {
    50: '#a9a2f3',
    500: '#7e7dec',
    950: '#000000',
  },
}
SCSS
$custom: #7e7dec;
$custom-light: #a9a2f3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7dec",
  "rgb": {
    "r": 126,
    "g": 125,
    "b": 236
  },
  "hsl": {
    "h": 240.541,
    "s": 74.497,
    "l": 70.784
  },
  "oklch": {
    "l": 0.64258,
    "c": 0.16248,
    "h": 281.2
  },
  "luminance": 0.25159
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7E7DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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