#7E87F5#7E87F5

#7E87F5 is a light, vivid blue. Relative luminance 0.284; OKLCH L 66.7% C 0.161 H 277.5°. Best body text is #000000 at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#7E87F5
RGBrgb(126, 135, 245)
HSLhsl(235, 86%, 73%)
HSVhsv(235, 49%, 96%)
CMYKcmyk(48.6%, 44.9%, 0%, 3.9%)
CIE-LABlab(60.21, 25.56, -56.35)
CIE-LCHlch(60.21, 61.88, 294.40°)
OKLaboklab(66.68% 0.0212 -0.16)
OKLCHoklch(66.68% 0.161 277.5)
XYZxyz(33.7445, 28.3542, 90.0633)
Luminance0.2836 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E87F5 #F5EC7E
analogous
#7EC3F5 #7E87F5 #B07EF5
triadic
#7E87F5 #F57E87 #87F57E
tetradic
#7E87F5 #F57EC3 #F5EC7E #7EF5B0
square
#7E87F5 #F57EC3 #F5EC7E #7EF5B0
split-complementary
#7E87F5 #F5B07E #C3F57E
monochromatic
#1222E7 #4552F1 #7E87F5 #B7BCF9 #E3E5FD

Accessibility & contrast

On white

3.15
#7E87F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.67
#7E87F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E87F5
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E87F5#FFFFFF#000000##000000
##7E87F51.003.156.676.67
#FFFFFF3.151.0021.0021.00
#0000006.6721.001.001.00
##0000006.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5996F9
Deuteranopia (green-blind)
#4E8DF3
Tritanopia (blue-blind)
#509EB2
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #7e87f5;
/* rgb */ color: rgb(126, 135, 245);
/* oklch */ color: oklch(66.7% 0.161 277.5);
Tailwind
colors: {
  custom: {
    50: '#aaa9f9',
    500: '#7e87f5',
    950: '#000000',
  },
}
SCSS
$custom: #7e87f5;
$custom-light: #aaa9f9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e87f5",
  "rgb": {
    "r": 126,
    "g": 135,
    "b": 245
  },
  "hsl": {
    "h": 235.462,
    "s": 85.612,
    "l": 72.745
  },
  "oklch": {
    "l": 0.66676,
    "c": 0.16139,
    "h": 277.5
  },
  "luminance": 0.28356
}

Semantic roles & 50–950 ramp

primary
#7E87F5
secondary
#F5F2D6
accent
#D103E2
background
#FAFAFF
surface
#F5F4FF
border
#CFCED7
text
#101017
muted
#7F7F85

Preview Lab

Preview with #7E87F5

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

Preview Lab → · Contrast checker → · Palette generator →

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