#8A7EEE#8A7EEE

#8A7EEE is a light, vivid blue. Relative luminance 0.265; OKLCH L 65.5% C 0.162 H 285.9°. Best body text is #000000 at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#8A7EEE
RGBrgb(138, 126, 238)
HSLhsl(246, 77%, 71%)
HSVhsv(246, 47%, 93%)
CMYKcmyk(42%, 47.1%, 0%, 6.7%)
CIE-LABlab(58.51, 31.59, -55.14)
CIE-LCHlch(58.51, 63.54, 299.81°)
OKLaboklab(65.49% 0.0445 -0.1562)
OKLCHoklch(65.49% 0.162 285.9)
XYZxyz(33.3703, 26.4967, 84.2285)
Luminance0.2650 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7EEE #E2EE7E
analogous
#7EAAEE #8A7EEE #C27EEE
triadic
#8A7EEE #EE8A7E #7EEE8A
tetradic
#8A7EEE #EE7EAA #E2EE7E #7EEEC2
square
#8A7EEE #EE7EAA #E2EE7E #7EEEC2
split-complementary
#8A7EEE #EEC27E #AAEE7E
monochromatic
#301CD5 #5948E7 #8A7EEE #BBB4F5 #E6E4FB

Accessibility & contrast

On white

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

On black

6.30
#8A7EEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7EEE
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7EEE#FFFFFF#000000##000000
##8A7EEE1.003.336.306.30
#FFFFFF3.331.0021.0021.00
#0000006.3021.001.001.00
##0000006.3021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a7eee;
/* rgb */ color: rgb(138, 126, 238);
/* oklch */ color: oklch(65.5% 0.162 285.9);
Tailwind
colors: {
  custom: {
    50: '#b1a3f4',
    500: '#8a7eee',
    950: '#000000',
  },
}
SCSS
$custom: #8a7eee;
$custom-light: #b1a3f4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7eee",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 238
  },
  "hsl": {
    "h": 246.429,
    "s": 76.712,
    "l": 71.373
  },
  "oklch": {
    "l": 0.65487,
    "c": 0.1624,
    "h": 285.9
  },
  "luminance": 0.26498
}

Semantic roles & 50–950 ramp

primary
#8A7EEE
secondary
#EFF2D5
accent
#D90DC3
background
#FBFAFE
surface
#F6F4FD
border
#D0CED5
text
#110F17
muted
#807F85

Preview Lab

Preview with #8A7EEE

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

Preview Lab → · Contrast checker → · Palette generator →

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