#8A7BEB#8A7BEB

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

Color values

HEX#8A7BEB
RGBrgb(138, 123, 235)
HSLhsl(248, 74%, 70%)
HSVhsv(248, 48%, 92%)
CMYKcmyk(41.3%, 47.7%, 0%, 7.8%)
CIE-LABlab(57.62, 32.50, -54.88)
CIE-LCHlch(57.62, 63.78, 300.63°)
OKLaboklab(64.77% 0.0478 -0.1555)
OKLCHoklch(64.77% 0.163 287.1)
XYZxyz(32.5554, 25.5662, 81.8006)
Luminance0.2557 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7BEB #DCEB7B
analogous
#7BA4EB #8A7BEB #C27BEB
triadic
#8A7BEB #EB8A7B #7BEB8A
tetradic
#8A7BEB #EB7BA4 #DCEB7B #7BEBC2
square
#8A7BEB #EB7BA4 #DCEB7B #7BEBC2
split-complementary
#8A7BEB #EBC27B #A4EB7B
monochromatic
#361FCD #5B46E3 #8A7BEB #B9B0F3 #E7E4FB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A7BEB#FFFFFF#000000##000000
##8A7BEB1.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)
#4E8DEF
Deuteranopia (green-blind)
#4D87E8
Tritanopia (blue-blind)
#6E92A8
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #8a7beb;
/* rgb */ color: rgb(138, 123, 235);
/* oklch */ color: oklch(64.8% 0.163 287.1);
Tailwind
colors: {
  custom: {
    50: '#b1a1f2',
    500: '#8a7beb',
    950: '#000000',
  },
}
SCSS
$custom: #8a7beb;
$custom-light: #b1a1f2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7beb",
  "rgb": {
    "r": 138,
    "g": 123,
    "b": 235
  },
  "hsl": {
    "h": 248.036,
    "s": 73.684,
    "l": 70.196
  },
  "oklch": {
    "l": 0.64769,
    "c": 0.16264,
    "h": 287.1
  },
  "luminance": 0.25567
}

Semantic roles & 50–950 ramp

primary
#8A7BEB
secondary
#ECF0D1
accent
#D610BB
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110F17
muted
#807E85

Preview Lab

Preview with #8A7BEB

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

Preview Lab → · Contrast checker → · Palette generator →

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