#8B7EF2#8B7EF2

#8B7EF2 is a light, vivid blue. Relative luminance 0.268; OKLCH L 65.8% C 0.168 H 285.9°. Best body text is #000000 at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#8B7EF2
RGBrgb(139, 126, 242)
HSLhsl(247, 82%, 72%)
HSVhsv(247, 48%, 95%)
CMYKcmyk(42.6%, 47.9%, 0%, 5.1%)
CIE-LABlab(58.81, 32.94, -56.87)
CIE-LCHlch(58.81, 65.72, 300.08°)
OKLaboklab(65.81% 0.0461 -0.1613)
OKLCHoklch(65.81% 0.168 285.9)
XYZxyz(34.1307, 26.8201, 87.3657)
Luminance0.2682 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B7EF2 #E5F27E
analogous
#7EABF2 #8B7EF2 #C57EF2
triadic
#8B7EF2 #F28B7E #7EF28B
tetradic
#8B7EF2 #F27EAB #E5F27E #7EF2C5
square
#8B7EF2 #F27EAB #E5F27E #7EF2C5
split-complementary
#8B7EF2 #F2C57E #ABF27E
monochromatic
#2D16DF #5946EC #8B7EF2 #BDB6F8 #E6E3FC

Accessibility & contrast

On white

3.30
#8B7EF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.36
#8B7EF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B7EF2
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B7EF2#FFFFFF#000000##000000
##8B7EF21.003.306.366.36
#FFFFFF3.301.0021.0021.00
#0000006.3621.001.001.00
##0000006.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E91F6
Deuteranopia (green-blind)
#4C8AEF
Tritanopia (blue-blind)
#6C96AD
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #8b7ef2;
/* rgb */ color: rgb(139, 126, 242);
/* oklch */ color: oklch(65.8% 0.168 285.9);
Tailwind
colors: {
  custom: {
    50: '#b2a3f7',
    500: '#8b7ef2',
    950: '#000000',
  },
}
SCSS
$custom: #8b7ef2;
$custom-light: #b2a3f7;
$custom-dark: #000000;
JSON
{
  "hex": "#8b7ef2",
  "rgb": {
    "r": 139,
    "g": 126,
    "b": 242
  },
  "hsl": {
    "h": 246.724,
    "s": 81.69,
    "l": 72.157
  },
  "oklch": {
    "l": 0.65806,
    "c": 0.16771,
    "h": 285.9
  },
  "luminance": 0.26821
}

Semantic roles & 50–950 ramp

primary
#8B7EF2
secondary
#F1F4D7
accent
#DE07C6
background
#FBFAFF
surface
#F6F4FF
border
#D0CED7
text
#110F17
muted
#807F85

Preview Lab

Preview with #8B7EF2

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

Preview Lab → · Contrast checker → · Palette generator →

#8B7EF2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva