#8A7BEC#8A7BEC

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

Color values

HEX#8A7BEC
RGBrgb(138, 123, 236)
HSLhsl(248, 75%, 70%)
HSVhsv(248, 48%, 93%)
CMYKcmyk(41.5%, 47.9%, 0%, 7.5%)
CIE-LABlab(57.68, 32.77, -55.35)
CIE-LCHlch(57.68, 64.32, 300.63°)
OKLaboklab(64.83% 0.0479 -0.1568)
OKLCHoklch(64.83% 0.164 287)
XYZxyz(32.7002, 25.6241, 82.5636)
Luminance0.2562 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7BEC #DDEC7B
analogous
#7BA4EC #8A7BEC #C37BEC
triadic
#8A7BEC #EC8A7B #7BEC8A
tetradic
#8A7BEC #EC7BA4 #DDEC7B #7BECC3
square
#8A7BEC #EC7BA4 #DDEC7B #7BECC3
split-complementary
#8A7BEC #ECC37B #A4EC7B
monochromatic
#351ECF #5B46E4 #8A7BEC #B9B0F4 #E7E4FB

Accessibility & contrast

On white

3.43
#8A7BEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.12
#8A7BEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7BEC
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7BEC#FFFFFF#000000##000000
##8A7BEC1.003.436.126.12
#FFFFFF3.431.0021.0021.00
#0000006.1221.001.001.00
##0000006.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E8DF0
Deuteranopia (green-blind)
#4C87E9
Tritanopia (blue-blind)
#6D92A8
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #8a7bec;
/* rgb */ color: rgb(138, 123, 236);
/* oklch */ color: oklch(64.8% 0.164 287.0);
Tailwind
colors: {
  custom: {
    50: '#b1a1f3',
    500: '#8a7bec',
    950: '#000000',
  },
}
SCSS
$custom: #8a7bec;
$custom-light: #b1a1f3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7bec",
  "rgb": {
    "r": 138,
    "g": 123,
    "b": 236
  },
  "hsl": {
    "h": 247.965,
    "s": 74.834,
    "l": 70.392
  },
  "oklch": {
    "l": 0.64829,
    "c": 0.16398,
    "h": 287
  },
  "luminance": 0.25625
}

Semantic roles & 50–950 ramp

primary
#8A7BEC
secondary
#EDF1D2
accent
#D70FBC
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110F17
muted
#807E85

Preview Lab

Preview with #8A7BEC

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

Preview Lab → · Contrast checker → · Palette generator →

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