#7E87DC#7E87DC

#7E87DC is a light, vivid blue. Relative luminance 0.269; OKLCH L 65.3% C 0.127 H 277.7°. Best body text is #000000 at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#7E87DC
RGBrgb(126, 135, 220)
HSLhsl(234, 57%, 68%)
HSVhsv(234, 43%, 86%)
CMYKcmyk(42.7%, 38.6%, 0%, 13.7%)
CIE-LABlab(58.91, 18.24, -44.53)
CIE-LCHlch(58.91, 48.12, 292.27°)
OKLaboklab(65.26% 0.0169 -0.1254)
OKLCHoklch(65.26% 0.127 277.7)
XYZxyz(30.1825, 26.9294, 71.3038)
Luminance0.2693 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E87DC #DCD37E
analogous
#7EB6DC #7E87DC #A47EDC
triadic
#7E87DC #DC7E87 #87DC7E
tetradic
#7E87DC #DC7EB6 #DCD37E #7EDCA4
square
#7E87DC #DC7EB6 #DCD37E #7EDCA4
split-complementary
#7E87DC #DCA47E #B6DC7E
monochromatic
#303CB0 #4E5ACF #7E87DC #AEB4E9 #DEE1F6

Accessibility & contrast

On white

3.29
#7E87DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.39
#7E87DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E87DC
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E87DC#FFFFFF#000000##000000
##7E87DC1.003.296.396.39
#FFFFFF3.291.0021.0021.00
#0000006.3921.001.001.00
##0000006.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6992DF
Deuteranopia (green-blind)
#628ADA
Tritanopia (blue-blind)
#5F98A7
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #7e87dc;
/* rgb */ color: rgb(126, 135, 220);
/* oklch */ color: oklch(65.3% 0.127 277.7);
Tailwind
colors: {
  custom: {
    50: '#a7a9e7',
    500: '#7e87dc',
    950: '#000000',
  },
}
SCSS
$custom: #7e87dc;
$custom-light: #a7a9e7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e87dc",
  "rgb": {
    "r": 126,
    "g": 135,
    "b": 220
  },
  "hsl": {
    "h": 234.255,
    "s": 57.317,
    "l": 67.843
  },
  "oklch": {
    "l": 0.65263,
    "c": 0.12656,
    "h": 277.7
  },
  "luminance": 0.26931
}

Semantic roles & 50–950 ramp

primary
#7E87DC
secondary
#E9E7CC
accent
#B521C5
background
#FAFAFE
surface
#F4F4FC
border
#CECED5
text
#100F16
muted
#7F7F84

Preview Lab

Preview with #7E87DC

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

Preview Lab → · Contrast checker → · Palette generator →

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