#8A7FF2#8A7FF2

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

Color values

HEX#8A7FF2
RGBrgb(138, 127, 242)
HSLhsl(246, 82%, 72%)
HSVhsv(246, 48%, 95%)
CMYKcmyk(43%, 47.5%, 0%, 5.1%)
CIE-LABlab(58.97, 32.13, -56.62)
CIE-LCHlch(58.97, 65.10, 299.57°)
OKLaboklab(65.91% 0.0437 -0.1605)
OKLCHoklch(65.91% 0.166 285.2)
XYZxyz(34.0930, 26.9914, 87.4007)
Luminance0.2699 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7FF2 #E7F27F
analogous
#7FAEF2 #8A7FF2 #C37FF2
triadic
#8A7FF2 #F28A7F #7FF28A
tetradic
#8A7FF2 #F27FAE #E7F27F #7FF2C3
square
#8A7FF2 #F27FAE #E7F27F #7FF2C3
split-complementary
#8A7FF2 #F2C37F #AEF27F
monochromatic
#2A17E0 #5747EC #8A7FF2 #BDB7F8 #E6E3FC

Accessibility & contrast

On white

3.28
#8A7FF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.40
#8A7FF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7FF2
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7FF2#FFFFFF#000000##000000
##8A7FF21.003.286.406.40
#FFFFFF3.281.0021.0021.00
#0000006.4021.001.001.00
##0000006.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5091F6
Deuteranopia (green-blind)
#4D8AEF
Tritanopia (blue-blind)
#6A97AD
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #8a7ff2;
/* rgb */ color: rgb(138, 127, 242);
/* oklch */ color: oklch(65.9% 0.166 285.2);
Tailwind
colors: {
  custom: {
    50: '#b1a4f7',
    500: '#8a7ff2',
    950: '#000000',
  },
}
SCSS
$custom: #8a7ff2;
$custom-light: #b1a4f7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7ff2",
  "rgb": {
    "r": 138,
    "g": 127,
    "b": 242
  },
  "hsl": {
    "h": 245.739,
    "s": 81.56,
    "l": 72.353
  },
  "oklch": {
    "l": 0.65906,
    "c": 0.16639,
    "h": 285.2
  },
  "luminance": 0.26993
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A7FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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