#8A7EF5#8A7EF5

#8A7EF5 is a light, vivid blue. Relative luminance 0.269; OKLCH L 65.9% C 0.172 H 285.2°. Best body text is #000000 at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#8A7EF5
RGBrgb(138, 126, 245)
HSLhsl(246, 86%, 73%)
HSVhsv(246, 49%, 96%)
CMYKcmyk(43.7%, 48.6%, 0%, 3.9%)
CIE-LABlab(58.90, 33.56, -58.39)
CIE-LCHlch(58.90, 67.35, 299.89°)
OKLaboklab(65.91% 0.0452 -0.1657)
OKLCHoklch(65.91% 0.172 285.2)
XYZxyz(34.4187, 26.9161, 89.7503)
Luminance0.2692 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7EF5 #E9F57E
analogous
#7EAEF5 #8A7EF5 #C57EF5
triadic
#8A7EF5 #F58A7E #7EF58A
tetradic
#8A7EF5 #F57EAE #E9F57E #7EF5C5
square
#8A7EF5 #F57EAE #E9F57E #7EF5C5
split-complementary
#8A7EF5 #F5C57E #AEF57E
monochromatic
#2712E7 #5645F1 #8A7EF5 #BEB7F9 #E5E3FD

Accessibility & contrast

On white

3.29
#8A7EF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.38
#8A7EF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7EF5
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7EF5#FFFFFF#000000##000000
##8A7EF51.003.296.386.38
#FFFFFF3.291.0021.0021.00
#0000006.3821.001.001.00
##0000006.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B91F9
Deuteranopia (green-blind)
#488AF2
Tritanopia (blue-blind)
#6897AE
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #8a7ef5;
/* rgb */ color: rgb(138, 126, 245);
/* oklch */ color: oklch(65.9% 0.172 285.2);
Tailwind
colors: {
  custom: {
    50: '#b1a3f9',
    500: '#8a7ef5',
    950: '#000000',
  },
}
SCSS
$custom: #8a7ef5;
$custom-light: #b1a3f9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7ef5",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 245
  },
  "hsl": {
    "h": 246.05,
    "s": 85.612,
    "l": 72.745
  },
  "oklch": {
    "l": 0.65908,
    "c": 0.1718,
    "h": 285.2
  },
  "luminance": 0.26918
}

Semantic roles & 50–950 ramp

primary
#8A7EF5
secondary
#F2F5D6
accent
#E203CC
background
#FBFAFF
surface
#F6F4FF
border
#D0CED7
text
#110F17
muted
#807F85

Preview Lab

Preview with #8A7EF5

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

Preview Lab → · Contrast checker → · Palette generator →

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