#8A7DFB#8A7DFB

#8A7DFB is a light, vivid blue. Relative luminance 0.270; OKLCH L 66.1% C 0.181 H 285.0°. Best body text is #000000 at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#8A7DFB
RGBrgb(138, 125, 251)
HSLhsl(246, 94%, 74%)
HSVhsv(246, 50%, 98%)
CMYKcmyk(45%, 50.2%, 0%, 1.6%)
CIE-LABlab(59.01, 35.84, -61.53)
CIE-LCHlch(59.01, 71.21, 300.22°)
OKLaboklab(66.1% 0.0469 -0.175)
OKLCHoklch(66.1% 0.181 285)
XYZxyz(35.2223, 27.0340, 94.6103)
Luminance0.2704 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7DFB #EEFB7D
analogous
#7DAFFB #8A7DFB #C97DFB
triadic
#8A7DFB #FB8A7D #7DFB8A
tetradic
#8A7DFB #FB7DAF #EEFB7D #7DFBC9
square
#8A7DFB #FB7DAF #EEFB7D #7DFBC9
split-complementary
#8A7DFB #FBC97D #AFFB7D
monochromatic
#2008F6 #5542F9 #8A7DFB #BFB8FD #E4E1FE

Accessibility & contrast

On white

3.28
#8A7DFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.41
#8A7DFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7DFB
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7DFB#FFFFFF#000000##000000
##8A7DFB1.003.286.416.41
#FFFFFF3.281.0021.0021.00
#0000006.4121.001.001.00
##0000006.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4392FF
Deuteranopia (green-blind)
#3F8AF8
Tritanopia (blue-blind)
#6598B0
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #8a7dfb;
/* rgb */ color: rgb(138, 125, 251);
/* oklch */ color: oklch(66.1% 0.181 285.0);
Tailwind
colors: {
  custom: {
    50: '#b2a3fd',
    500: '#8a7dfb',
    950: '#000000',
  },
}
SCSS
$custom: #8a7dfb;
$custom-light: #b2a3fd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7dfb",
  "rgb": {
    "r": 138,
    "g": 125,
    "b": 251
  },
  "hsl": {
    "h": 246.19,
    "s": 94.03,
    "l": 73.725
  },
  "oklch": {
    "l": 0.66101,
    "c": 0.18112,
    "h": 285
  },
  "luminance": 0.27036
}

Semantic roles & 50–950 ramp

primary
#8A7DFB
secondary
#F3F6D5
accent
#E600CE
background
#FBFAFF
surface
#F6F3FF
border
#D0CDD7
text
#110F18
muted
#807F86

Preview Lab

Preview with #8A7DFB

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

Preview Lab → · Contrast checker → · Palette generator →

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