#8A7EF2#8A7EF2

#8A7EF2 is a light, vivid blue. Relative luminance 0.267; OKLCH L 65.7% C 0.168 H 285.5°. Best body text is #000000 at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#8A7EF2
RGBrgb(138, 126, 242)
HSLhsl(246, 82%, 72%)
HSVhsv(246, 48%, 95%)
CMYKcmyk(43%, 47.9%, 0%, 5.1%)
CIE-LABlab(58.73, 32.71, -57.00)
CIE-LCHlch(58.73, 65.72, 299.85°)
OKLaboklab(65.73% 0.0449 -0.1617)
OKLCHoklch(65.73% 0.168 285.5)
XYZxyz(33.9645, 26.7344, 87.3579)
Luminance0.2674 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7EF2 #E6F27E
analogous
#7EACF2 #8A7EF2 #C47EF2
triadic
#8A7EF2 #F28A7E #7EF28A
tetradic
#8A7EF2 #F27EAC #E6F27E #7EF2C4
square
#8A7EF2 #F27EAC #E6F27E #7EF2C4
split-complementary
#8A7EF2 #F2C47E #ACF27E
monochromatic
#2B16DF #5846EC #8A7EF2 #BCB6F8 #E6E3FC

Accessibility & contrast

On white

3.31
#8A7EF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.35
#8A7EF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7EF2
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7EF2#FFFFFF#000000##000000
##8A7EF21.003.316.356.35
#FFFFFF3.311.0021.0021.00
#0000006.3521.001.001.00
##0000006.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E91F6
Deuteranopia (green-blind)
#4B8AEF
Tritanopia (blue-blind)
#6A96AD
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #8a7ef2;
/* rgb */ color: rgb(138, 126, 242);
/* oklch */ color: oklch(65.7% 0.168 285.5);
Tailwind
colors: {
  custom: {
    50: '#b1a3f7',
    500: '#8a7ef2',
    950: '#000000',
  },
}
SCSS
$custom: #8a7ef2;
$custom-light: #b1a3f7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7ef2",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 242
  },
  "hsl": {
    "h": 246.207,
    "s": 81.69,
    "l": 72.157
  },
  "oklch": {
    "l": 0.65726,
    "c": 0.16778,
    "h": 285.5
  },
  "luminance": 0.26736
}

Semantic roles & 50–950 ramp

primary
#8A7EF2
secondary
#F1F4D7
accent
#DE07C8
background
#FBFAFF
surface
#F6F4FF
border
#D0CED7
text
#110F17
muted
#807F85

Preview Lab

Preview with #8A7EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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