#8A7EE6#8A7EE6

#8A7EE6 is a light, vivid blue. Relative luminance 0.260; OKLCH L 65.0% C 0.152 H 286.7°. Best body text is #000000 at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#8A7EE6
RGBrgb(138, 126, 230)
HSLhsl(247, 68%, 70%)
HSVhsv(247, 45%, 90%)
CMYKcmyk(40%, 45.2%, 0%, 9.8%)
CIE-LABlab(58.07, 29.36, -51.38)
CIE-LCHlch(58.07, 59.17, 299.74°)
OKLaboklab(65.02% 0.0435 -0.1452)
OKLCHoklch(65.02% 0.152 286.7)
XYZxyz(32.2210, 26.0370, 78.1755)
Luminance0.2604 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7EE6 #DAE67E
analogous
#7EA6E6 #8A7EE6 #BE7EE6
triadic
#8A7EE6 #E68A7E #7EE68A
tetradic
#8A7EE6 #E67EA6 #DAE67E #7EE6BE
square
#8A7EE6 #E67EA6 #DAE67E #7EE6BE
split-complementary
#8A7EE6 #E6BE7E #A6E67E
monochromatic
#3826C4 #5C4BDC #8A7EE6 #B8B1F0 #E7E5FA

Accessibility & contrast

On white

3.38
#8A7EE6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.21
#8A7EE6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7EE6
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7EE6#FFFFFF#000000##000000
##8A7EE61.003.386.216.21
#FFFFFF3.381.0021.0021.00
#0000006.2121.001.001.00
##0000006.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#578EEA
Deuteranopia (green-blind)
#5689E4
Tritanopia (blue-blind)
#7093A7
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #8a7ee6;
/* rgb */ color: rgb(138, 126, 230);
/* oklch */ color: oklch(65.0% 0.152 286.7);
Tailwind
colors: {
  custom: {
    50: '#b0a3ee',
    500: '#8a7ee6',
    950: '#000000',
  },
}
SCSS
$custom: #8a7ee6;
$custom-light: #b0a3ee;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7ee6",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 230
  },
  "hsl": {
    "h": 246.923,
    "s": 67.532,
    "l": 69.804
  },
  "oklch": {
    "l": 0.6502,
    "c": 0.15156,
    "h": 286.7
  },
  "luminance": 0.26038
}

Semantic roles & 50–950 ramp

primary
#8A7EE6
secondary
#EBEFD1
accent
#CF16BA
background
#FBFAFE
surface
#F6F3FD
border
#D0CDD5
text
#110F16
muted
#807F84

Preview Lab

Preview with #8A7EE6

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

Preview Lab → · Contrast checker → · Palette generator →

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