#8A7EF0#8A7EF0

#8A7EF0 is a light, vivid blue. Relative luminance 0.266; OKLCH L 65.6% C 0.165 H 285.7°. Best body text is #000000 at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#8A7EF0
RGBrgb(138, 126, 240)
HSLhsl(246, 79%, 72%)
HSVhsv(246, 48%, 94%)
CMYKcmyk(42.5%, 47.5%, 0%, 5.9%)
CIE-LABlab(58.62, 32.15, -56.07)
CIE-LCHlch(58.62, 64.63, 299.83°)
OKLaboklab(65.61% 0.0447 -0.1589)
OKLCHoklch(65.61% 0.165 285.7)
XYZxyz(33.6658, 26.6149, 85.7845)
Luminance0.2662 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7EF0 #E4F07E
analogous
#7EABF0 #8A7EF0 #C37EF0
triadic
#8A7EF0 #F08A7E #7EF08A
tetradic
#8A7EF0 #F07EAB #E4F07E #7EF0C3
square
#8A7EF0 #F07EAB #E4F07E #7EF0C3
split-complementary
#8A7EF0 #F0C37E #ABF07E
monochromatic
#2E19DA #5847EA #8A7EF0 #BCB5F6 #E6E4FC

Accessibility & contrast

On white

3.32
#8A7EF0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.32
#8A7EF0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7EF0
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7EF0#FFFFFF#000000##000000
##8A7EF01.003.326.326.32
#FFFFFF3.321.0021.0021.00
#0000006.3221.001.001.00
##0000006.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5090F4
Deuteranopia (green-blind)
#4D8AED
Tritanopia (blue-blind)
#6B96AC
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #8a7ef0;
/* rgb */ color: rgb(138, 126, 240);
/* oklch */ color: oklch(65.6% 0.165 285.7);
Tailwind
colors: {
  custom: {
    50: '#b1a3f5',
    500: '#8a7ef0',
    950: '#000000',
  },
}
SCSS
$custom: #8a7ef0;
$custom-light: #b1a3f5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7ef0",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 240
  },
  "hsl": {
    "h": 246.316,
    "s": 79.167,
    "l": 71.765
  },
  "oklch": {
    "l": 0.65606,
    "c": 0.1651,
    "h": 285.7
  },
  "luminance": 0.26616
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A7EF0

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

Preview Lab → · Contrast checker → · Palette generator →

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