#7E87F2#7E87F2

#7E87F2 is a light, vivid blue. Relative luminance 0.282; OKLCH L 66.5% C 0.157 H 277.6°. Best body text is #000000 at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#7E87F2
RGBrgb(126, 135, 242)
HSLhsl(235, 82%, 72%)
HSVhsv(235, 48%, 95%)
CMYKcmyk(47.9%, 44.2%, 0%, 5.1%)
CIE-LABlab(60.04, 24.67, -54.95)
CIE-LCHlch(60.04, 60.24, 294.18°)
OKLaboklab(66.5% 0.0208 -0.1559)
OKLCHoklch(66.5% 0.157 277.6)
XYZxyz(33.2902, 28.1725, 87.6709)
Luminance0.2817 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E87F2 #F2E97E
analogous
#7EC1F2 #7E87F2 #AF7EF2
triadic
#7E87F2 #F27E87 #87F27E
tetradic
#7E87F2 #F27EC1 #F2E97E #7EF2AF
square
#7E87F2 #F27EC1 #F2E97E #7EF2AF
split-complementary
#7E87F2 #F2AF7E #C1F27E
monochromatic
#1626DF #4653EC #7E87F2 #B6BBF8 #E3E5FC

Accessibility & contrast

On white

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

On black

6.63
#7E87F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E87F2
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E87F2#FFFFFF#000000##000000
##7E87F21.003.176.636.63
#FFFFFF3.171.0021.0021.00
#0000006.6321.001.001.00
##0000006.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B95F6
Deuteranopia (green-blind)
#518CF0
Tritanopia (blue-blind)
#529EB1
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #7e87f2;
/* rgb */ color: rgb(126, 135, 242);
/* oklch */ color: oklch(66.5% 0.157 277.6);
Tailwind
colors: {
  custom: {
    50: '#aaa9f7',
    500: '#7e87f2',
    950: '#000000',
  },
}
SCSS
$custom: #7e87f2;
$custom-light: #aaa9f7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e87f2",
  "rgb": {
    "r": 126,
    "g": 135,
    "b": 242
  },
  "hsl": {
    "h": 235.345,
    "s": 81.69,
    "l": 72.157
  },
  "oklch": {
    "l": 0.66499,
    "c": 0.15728,
    "h": 277.6
  },
  "luminance": 0.28174
}

Semantic roles & 50–950 ramp

primary
#7E87F2
secondary
#F4F2D7
accent
#CD07DE
background
#FAFAFF
surface
#F4F4FF
border
#CECED7
text
#101017
muted
#7F7F85

Preview Lab

Preview with #7E87F2

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

Preview Lab → · Contrast checker → · Palette generator →

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