#8A7EEF#8A7EEF

#8A7EEF is a light, vivid blue. Relative luminance 0.266; OKLCH L 65.5% C 0.164 H 285.8°. Best body text is #000000 at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#8A7EEF
RGBrgb(138, 126, 239)
HSLhsl(246, 78%, 72%)
HSVhsv(246, 47%, 94%)
CMYKcmyk(42.3%, 47.3%, 0%, 6.3%)
CIE-LABlab(58.56, 31.87, -55.60)
CIE-LCHlch(58.56, 64.09, 299.82°)
OKLaboklab(65.55% 0.0446 -0.1576)
OKLCHoklch(65.55% 0.164 285.8)
XYZxyz(33.5176, 26.5557, 85.0043)
Luminance0.2656 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7EEF #E3EF7E
analogous
#7EABEF #8A7EEF #C37EEF
triadic
#8A7EEF #EF8A7E #7EEF8A
tetradic
#8A7EEF #EF7EAB #E3EF7E #7EEFC3
square
#8A7EEF #EF7EAB #E3EF7E #7EEFC3
split-complementary
#8A7EEF #EFC37E #ABEF7E
monochromatic
#2F1BD8 #5948E8 #8A7EEF #BBB4F6 #E6E4FC

Accessibility & contrast

On white

3.33
#8A7EEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.31
#8A7EEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7EEF
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7EEF#FFFFFF#000000##000000
##8A7EEF1.003.336.316.31
#FFFFFF3.331.0021.0021.00
#0000006.3121.001.001.00
##0000006.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5190F3
Deuteranopia (green-blind)
#4E8AEC
Tritanopia (blue-blind)
#6C95AB
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #8a7eef;
/* rgb */ color: rgb(138, 126, 239);
/* oklch */ color: oklch(65.5% 0.164 285.8);
Tailwind
colors: {
  custom: {
    50: '#b1a3f5',
    500: '#8a7eef',
    950: '#000000',
  },
}
SCSS
$custom: #8a7eef;
$custom-light: #b1a3f5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7eef",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 239
  },
  "hsl": {
    "h": 246.372,
    "s": 77.931,
    "l": 71.569
  },
  "oklch": {
    "l": 0.65547,
    "c": 0.16375,
    "h": 285.8
  },
  "luminance": 0.26557
}

Semantic roles & 50–950 ramp

primary
#8A7EEF
secondary
#F0F3D6
accent
#DA0BC4
background
#FBFAFF
surface
#F6F4FE
border
#D0CED6
text
#110F17
muted
#807F85

Preview Lab

Preview with #8A7EEF

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

Preview Lab → · Contrast checker → · Palette generator →

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