#8A7BE2#8A7BE2

#8A7BE2 is a light, vivid blue. Relative luminance 0.251; OKLCH L 64.2% C 0.150 H 288.1°. Best body text is #000000 at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#8A7BE2
RGBrgb(138, 123, 226)
HSLhsl(249, 64%, 68%)
HSVhsv(249, 46%, 89%)
CMYKcmyk(38.9%, 45.6%, 0%, 11.4%)
CIE-LABlab(57.13, 30.01, -50.64)
CIE-LCHlch(57.13, 58.86, 300.65°)
OKLaboklab(64.24% 0.0467 -0.143)
OKLCHoklch(64.24% 0.15 288.1)
XYZxyz(31.2879, 25.0592, 75.1252)
Luminance0.2506 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7BE2 #D3E27B
analogous
#7B9FE2 #8A7BE2 #BD7BE2
triadic
#8A7BE2 #E28A7B #7BE28A
tetradic
#8A7BE2 #E27B9F #D3E27B #7BE2BD
square
#8A7BE2 #E27B9F #D3E27B #7BE2BD
split-complementary
#8A7BE2 #E2BD7B #9FE27B
monochromatic
#3E29BA #5E49D7 #8A7BE2 #B6ADED #E3DFF8

Accessibility & contrast

On white

3.49
#8A7BE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.01
#8A7BE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7BE2
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7BE2#FFFFFF#000000##000000
##8A7BE21.003.496.016.01
#FFFFFF3.491.0021.0021.00
#0000006.0121.001.001.00
##0000006.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#558CE6
Deuteranopia (green-blind)
#5587E0
Tritanopia (blue-blind)
#728FA4
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #8a7be2;
/* rgb */ color: rgb(138, 123, 226);
/* oklch */ color: oklch(64.2% 0.150 288.1);
Tailwind
colors: {
  custom: {
    50: '#b0a1eb',
    500: '#8a7be2',
    950: '#000000',
  },
}
SCSS
$custom: #8a7be2;
$custom-light: #b0a1eb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7be2",
  "rgb": {
    "r": 138,
    "g": 123,
    "b": 226
  },
  "hsl": {
    "h": 248.738,
    "s": 63.975,
    "l": 68.431
  },
  "oklch": {
    "l": 0.64242,
    "c": 0.15047,
    "h": 288.1
  },
  "luminance": 0.2506
}

Semantic roles & 50–950 ramp

primary
#8A7BE2
secondary
#E7ECCD
accent
#CC1AB2
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110F16
muted
#807E84

Preview Lab

Preview with #8A7BE2

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

Preview Lab → · Contrast checker → · Palette generator →

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