#8A7BF2#8A7BF2

#8A7BF2 is a light, vivid blue. Relative luminance 0.260; OKLCH L 65.2% C 0.172 H 286.4°. Best body text is #000000 at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#8A7BF2
RGBrgb(138, 123, 242)
HSLhsl(248, 82%, 72%)
HSVhsv(248, 49%, 95%)
CMYKcmyk(43%, 49.2%, 0%, 5.1%)
CIE-LABlab(58.02, 34.45, -58.14)
CIE-LCHlch(58.02, 67.58, 300.65°)
OKLaboklab(65.19% 0.0485 -0.165)
OKLCHoklch(65.19% 0.172 286.4)
XYZxyz(33.5866, 25.9787, 87.2319)
Luminance0.2598 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7BF2 #E3F27B
analogous
#7BA8F2 #8A7BF2 #C67BF2
triadic
#8A7BF2 #F28A7B #7BF28A
tetradic
#8A7BF2 #F27BA8 #E3F27B #7BF2C6
square
#8A7BF2 #F27BA8 #E3F27B #7BF2C6
split-complementary
#8A7BF2 #F2C67B #A8F27B
monochromatic
#2F16DD #5943ED #8A7BF2 #BBB3F7 #E6E3FC

Accessibility & contrast

On white

3.39
#8A7BF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.20
#8A7BF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7BF2
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7BF2#FFFFFF#000000##000000
##8A7BF21.003.396.206.20
#FFFFFF3.391.0021.0021.00
#0000006.2021.001.001.00
##0000006.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#488FF6
Deuteranopia (green-blind)
#4688EF
Tritanopia (blue-blind)
#6A94AB
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #8a7bf2;
/* rgb */ color: rgb(138, 123, 242);
/* oklch */ color: oklch(65.2% 0.172 286.4);
Tailwind
colors: {
  custom: {
    50: '#b1a1f7',
    500: '#8a7bf2',
    950: '#000000',
  },
}
SCSS
$custom: #8a7bf2;
$custom-light: #b1a1f7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7bf2",
  "rgb": {
    "r": 138,
    "g": 123,
    "b": 242
  },
  "hsl": {
    "h": 247.563,
    "s": 82.069,
    "l": 71.569
  },
  "oklch": {
    "l": 0.65192,
    "c": 0.17198,
    "h": 286.4
  },
  "luminance": 0.2598
}

Semantic roles & 50–950 ramp

primary
#8A7BF2
secondary
#F0F4D5
accent
#DE07C3
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110F17
muted
#807E85

Preview Lab

Preview with #8A7BF2

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

Preview Lab → · Contrast checker → · Palette generator →

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