#8A7DFA#8A7DFA

#8A7DFA is a light, vivid blue. Relative luminance 0.270; OKLCH L 66.0% C 0.180 H 285.1°. Best body text is #000000 at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#8A7DFA
RGBrgb(138, 125, 250)
HSLhsl(246, 93%, 74%)
HSVhsv(246, 50%, 98%)
CMYKcmyk(44.8%, 50%, 0%, 2%)
CIE-LABlab(58.95, 35.55, -61.07)
CIE-LCHlch(58.95, 70.67, 300.21°)
OKLaboklab(66.04% 0.0468 -0.1736)
OKLCHoklch(66.04% 0.18 285.1)
XYZxyz(35.0651, 26.9711, 93.7823)
Luminance0.2697 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7DFA #EDFA7D
analogous
#7DAEFA #8A7DFA #C87DFA
triadic
#8A7DFA #FA8A7D #7DFA8A
tetradic
#8A7DFA #FA7DAE #EDFA7D #7DFAC8
square
#8A7DFA #FA7DAE #EDFA7D #7DFAC8
split-complementary
#8A7DFA #FAC87D #AEFA7D
monochromatic
#2209F3 #5542F8 #8A7DFA #BFB8FC #E4E2FE

Accessibility & contrast

On white

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

On black

6.39
#8A7DFA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7DFA
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7DFA#FFFFFF#000000##000000
##8A7DFA1.003.286.396.39
#FFFFFF3.281.0021.0021.00
#0000006.3921.001.001.00
##0000006.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4591FE
Deuteranopia (green-blind)
#408AF7
Tritanopia (blue-blind)
#6698B0
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #8a7dfa;
/* rgb */ color: rgb(138, 125, 250);
/* oklch */ color: oklch(66.0% 0.180 285.1);
Tailwind
colors: {
  custom: {
    50: '#b2a3fd',
    500: '#8a7dfa',
    950: '#000000',
  },
}
SCSS
$custom: #8a7dfa;
$custom-light: #b2a3fd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7dfa",
  "rgb": {
    "r": 138,
    "g": 125,
    "b": 250
  },
  "hsl": {
    "h": 246.24,
    "s": 92.593,
    "l": 73.529
  },
  "oklch": {
    "l": 0.66039,
    "c": 0.17981,
    "h": 285.1
  },
  "luminance": 0.26973
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A7DFA

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

Preview Lab → · Contrast checker → · Palette generator →

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