#8A7DFE#8A7DFE

#8A7DFE is a light, vivid blue. Relative luminance 0.272; OKLCH L 66.3% C 0.185 H 284.7°. Best body text is #000000 at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#8A7DFE
RGBrgb(138, 125, 254)
HSLhsl(246, 98%, 74%)
HSVhsv(246, 51%, 100%)
CMYKcmyk(45.7%, 50.8%, 0%, 0.4%)
CIE-LABlab(59.18, 36.69, -62.90)
CIE-LCHlch(59.18, 72.82, 300.26°)
OKLaboklab(66.29% 0.0471 -0.179)
OKLCHoklch(66.29% 0.185 284.7)
XYZxyz(35.6990, 27.2247, 97.1206)
Luminance0.2723 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7DFE #F1FE7D
analogous
#7DB0FE #8A7DFE #CB7DFE
triadic
#8A7DFE #FE8A7D #7DFE8A
tetradic
#8A7DFE #FE7DB0 #F1FE7D #7DFECB
square
#8A7DFE #FE7DB0 #F1FE7D #7DFECB
split-complementary
#8A7DFE #FECB7D #B0FE7D
monochromatic
#1D04FD #5340FE #8A7DFE #C1BAFE #E4E1FF

Accessibility & contrast

On white

3.26
#8A7DFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.45
#8A7DFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7DFE
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7DFE#FFFFFF#000000##000000
##8A7DFE1.003.266.456.45
#FFFFFF3.261.0021.0021.00
#0000006.4521.001.001.00
##0000006.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4092FF
Deuteranopia (green-blind)
#3B8AFB
Tritanopia (blue-blind)
#6499B2
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #8a7dfe;
/* rgb */ color: rgb(138, 125, 254);
/* oklch */ color: oklch(66.3% 0.185 284.7);
Tailwind
colors: {
  custom: {
    50: '#b2a3ff',
    500: '#8a7dfe',
    950: '#000000',
  },
}
SCSS
$custom: #8a7dfe;
$custom-light: #b2a3ff;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7dfe",
  "rgb": {
    "r": 138,
    "g": 125,
    "b": 254
  },
  "hsl": {
    "h": 246.047,
    "s": 98.473,
    "l": 74.314
  },
  "oklch": {
    "l": 0.66289,
    "c": 0.18507,
    "h": 284.7
  },
  "luminance": 0.27226
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A7DFE

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

Preview Lab → · Contrast checker → · Palette generator →

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