#7E87F1#7E87F1

#7E87F1 is a light, vivid blue. Relative luminance 0.281; OKLCH L 66.4% C 0.156 H 277.6°. Best body text is #000000 at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#7E87F1
RGBrgb(126, 135, 241)
HSLhsl(235, 80%, 72%)
HSVhsv(235, 48%, 95%)
CMYKcmyk(47.7%, 44%, 0%, 5.5%)
CIE-LABlab(59.99, 24.37, -54.49)
CIE-LCHlch(59.99, 59.69, 294.10°)
OKLaboklab(66.44% 0.0206 -0.1545)
OKLCHoklch(66.44% 0.156 277.6)
XYZxyz(33.1404, 28.1126, 86.8821)
Luminance0.2811 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E87F1 #F1E87E
analogous
#7EC1F1 #7E87F1 #AE7EF1
triadic
#7E87F1 #F17E87 #87F17E
tetradic
#7E87F1 #F17EC1 #F1E87E #7EF1AE
square
#7E87F1 #F17EC1 #F1E87E #7EF1AE
split-complementary
#7E87F1 #F1AE7E #C1F17E
monochromatic
#1827DD #4754EB #7E87F1 #B5BAF7 #E3E5FC

Accessibility & contrast

On white

3.17
#7E87F1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.62
#7E87F1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E87F1
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E87F1#FFFFFF#000000##000000
##7E87F11.003.176.626.62
#FFFFFF3.171.0021.0021.00
#0000006.6221.001.001.00
##0000006.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C95F5
Deuteranopia (green-blind)
#528CEF
Tritanopia (blue-blind)
#539DB0
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #7e87f1;
/* rgb */ color: rgb(126, 135, 241);
/* oklch */ color: oklch(66.4% 0.156 277.6);
Tailwind
colors: {
  custom: {
    50: '#a9a9f6',
    500: '#7e87f1',
    950: '#000000',
  },
}
SCSS
$custom: #7e87f1;
$custom-light: #a9a9f6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e87f1",
  "rgb": {
    "r": 126,
    "g": 135,
    "b": 241
  },
  "hsl": {
    "h": 235.304,
    "s": 80.42,
    "l": 71.961
  },
  "oklch": {
    "l": 0.66441,
    "c": 0.1559,
    "h": 277.6
  },
  "luminance": 0.28114
}

Semantic roles & 50–950 ramp

primary
#7E87F1
secondary
#F4F2D7
accent
#CC09DD
background
#FAFAFF
surface
#F4F4FE
border
#CECED6
text
#101017
muted
#7F7F85

Preview Lab

Preview with #7E87F1

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

Preview Lab → · Contrast checker → · Palette generator →

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