#8A7DF2#8A7DF2

#8A7DF2 is a light, vivid blue. Relative luminance 0.265; OKLCH L 65.5% C 0.169 H 285.8°. Best body text is #000000 at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#8A7DF2
RGBrgb(138, 125, 242)
HSLhsl(247, 82%, 72%)
HSVhsv(247, 48%, 95%)
CMYKcmyk(43%, 48.3%, 0%, 5.1%)
CIE-LABlab(58.49, 33.29, -57.38)
CIE-LCHlch(58.49, 66.34, 300.12°)
OKLaboklab(65.55% 0.0461 -0.1628)
OKLCHoklch(65.55% 0.169 285.8)
XYZxyz(33.8373, 26.4800, 87.3154)
Luminance0.2648 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7DF2 #E5F27D
analogous
#7DABF2 #8A7DF2 #C57DF2
triadic
#8A7DF2 #F28A7D #7DF28A
tetradic
#8A7DF2 #F27DAB #E5F27D #7DF2C5
square
#8A7DF2 #F27DAB #E5F27D #7DF2C5
split-complementary
#8A7DF2 #F2C57D #ABF27D
monochromatic
#2C16DE #5845EC #8A7DF2 #BCB5F8 #E6E3FC

Accessibility & contrast

On white

3.34
#8A7DF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.30
#8A7DF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7DF2
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7DF2#FFFFFF#000000##000000
##8A7DF21.003.346.306.30
#FFFFFF3.341.0021.0021.00
#0000006.3021.001.001.00
##0000006.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C90F6
Deuteranopia (green-blind)
#4989EF
Tritanopia (blue-blind)
#6A95AC
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #8a7df2;
/* rgb */ color: rgb(138, 125, 242);
/* oklch */ color: oklch(65.5% 0.169 285.8);
Tailwind
colors: {
  custom: {
    50: '#b1a3f7',
    500: '#8a7df2',
    950: '#000000',
  },
}
SCSS
$custom: #8a7df2;
$custom-light: #b1a3f7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7df2",
  "rgb": {
    "r": 138,
    "g": 125,
    "b": 242
  },
  "hsl": {
    "h": 246.667,
    "s": 81.818,
    "l": 71.961
  },
  "oklch": {
    "l": 0.65548,
    "c": 0.16919,
    "h": 285.8
  },
  "luminance": 0.26481
}

Semantic roles & 50–950 ramp

primary
#8A7DF2
secondary
#F1F4D7
accent
#DE07C6
background
#FBFAFF
surface
#F6F3FF
border
#D0CDD7
text
#110F17
muted
#807F85

Preview Lab

Preview with #8A7DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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