#8A7DE2#8A7DE2

#8A7DE2 is a light, vivid blue. Relative luminance 0.256; OKLCH L 64.6% C 0.148 H 287.4°. Best body text is #000000 at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#8A7DE2
RGBrgb(138, 125, 226)
HSLhsl(248, 64%, 69%)
HSVhsv(248, 45%, 89%)
CMYKcmyk(38.9%, 44.7%, 0%, 11.4%)
CIE-LABlab(57.62, 28.84, -49.87)
CIE-LCHlch(57.62, 57.60, 300.04°)
OKLaboklab(64.61% 0.0442 -0.1408)
OKLCHoklch(64.61% 0.148 287.4)
XYZxyz(31.5385, 25.5605, 75.2087)
Luminance0.2556 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7DE2 #D5E27D
analogous
#7DA3E2 #8A7DE2 #BD7DE2
triadic
#8A7DE2 #E28A7D #7DE28A
tetradic
#8A7DE2 #E27DA3 #D5E27D #7DE2BD
square
#8A7DE2 #E27DA3 #D5E27D #7DE2BD
split-complementary
#8A7DE2 #E2BD7D #A3E27D
monochromatic
#3C2ABB #5D4BD7 #8A7DE2 #B7AFED #E4E1F8

Accessibility & contrast

On white

3.44
#8A7DE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.11
#8A7DE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7DE2
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7DE2#FFFFFF#000000##000000
##8A7DE21.003.446.116.11
#FFFFFF3.441.0021.0021.00
#0000006.1121.001.001.00
##0000006.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#598DE6
Deuteranopia (green-blind)
#5888E0
Tritanopia (blue-blind)
#7291A5
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #8a7de2;
/* rgb */ color: rgb(138, 125, 226);
/* oklch */ color: oklch(64.6% 0.148 287.4);
Tailwind
colors: {
  custom: {
    50: '#b0a2eb',
    500: '#8a7de2',
    950: '#000000',
  },
}
SCSS
$custom: #8a7de2;
$custom-light: #b0a2eb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7de2",
  "rgb": {
    "r": 138,
    "g": 125,
    "b": 226
  },
  "hsl": {
    "h": 247.723,
    "s": 63.522,
    "l": 68.824
  },
  "oklch": {
    "l": 0.64607,
    "c": 0.14754,
    "h": 287.4
  },
  "luminance": 0.25561
}

Semantic roles & 50–950 ramp

primary
#8A7DE2
secondary
#E8ECCE
accent
#CB1AB5
background
#FBFAFE
surface
#F6F3FD
border
#D0CDD5
text
#110F16
muted
#807F84

Preview Lab

Preview with #8A7DE2

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

Preview Lab → · Contrast checker → · Palette generator →

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