#8A7FE8#8A7FE8

#8A7FE8 is a light, vivid blue. Relative luminance 0.264; OKLCH L 65.3% C 0.153 H 286.1°. Best body text is #000000 at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#8A7FE8
RGBrgb(138, 127, 232)
HSLhsl(246, 70%, 70%)
HSVhsv(246, 45%, 91%)
CMYKcmyk(40.5%, 45.3%, 0%, 9%)
CIE-LABlab(58.42, 29.33, -51.94)
CIE-LCHlch(58.42, 59.65, 299.45°)
OKLaboklab(65.32% 0.0425 -0.1468)
OKLCHoklch(65.32% 0.153 286.1)
XYZxyz(32.6320, 26.4070, 79.7060)
Luminance0.2641 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7FE8 #DDE87F
analogous
#7FA8E8 #8A7FE8 #BF7FE8
triadic
#8A7FE8 #E88A7F #7FE88A
tetradic
#8A7FE8 #E87FA8 #DDE87F #7FE8BF
square
#8A7FE8 #E87FA8 #DDE87F #7FE8BF
split-complementary
#8A7FE8 #E8BF7F #A8E87F
monochromatic
#3524C9 #5B4BDF #8A7FE8 #B9B3F1 #E7E5FA

Accessibility & contrast

On white

3.34
#8A7FE8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.28
#8A7FE8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7FE8
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7FE8#FFFFFF#000000##000000
##8A7FE81.003.346.286.28
#FFFFFF3.341.0021.0021.00
#0000006.2821.001.001.00
##0000006.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#588FEC
Deuteranopia (green-blind)
#568AE6
Tritanopia (blue-blind)
#6F94A8
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #8a7fe8;
/* rgb */ color: rgb(138, 127, 232);
/* oklch */ color: oklch(65.3% 0.153 286.1);
Tailwind
colors: {
  custom: {
    50: '#b0a4f0',
    500: '#8a7fe8',
    950: '#000000',
  },
}
SCSS
$custom: #8a7fe8;
$custom-light: #b0a4f0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7fe8",
  "rgb": {
    "r": 138,
    "g": 127,
    "b": 232
  },
  "hsl": {
    "h": 246.286,
    "s": 69.536,
    "l": 70.392
  },
  "oklch": {
    "l": 0.65318,
    "c": 0.15284,
    "h": 286.1
  },
  "luminance": 0.26408
}

Semantic roles & 50–950 ramp

primary
#8A7FE8
secondary
#EDF0D3
accent
#D214BE
background
#FBFAFE
surface
#F6F4FD
border
#D0CED5
text
#110F16
muted
#807F84

Preview Lab

Preview with #8A7FE8

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

Preview Lab → · Contrast checker → · Palette generator →

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