#8A7DFC#8A7DFC

#8A7DFC is a light, vivid blue. Relative luminance 0.271; OKLCH L 66.2% C 0.182 H 284.9°. Best body text is #000000 at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#8A7DFC
RGBrgb(138, 125, 252)
HSLhsl(246, 95%, 74%)
HSVhsv(246, 50%, 99%)
CMYKcmyk(45.2%, 50.4%, 0%, 1.2%)
CIE-LABlab(59.06, 36.12, -61.99)
CIE-LCHlch(59.06, 71.74, 300.23°)
OKLaboklab(66.16% 0.0469 -0.1763)
OKLCHoklch(66.16% 0.182 284.9)
XYZxyz(35.3804, 27.0972, 95.4427)
Luminance0.2710 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7DFC #EFFC7D
analogous
#7DB0FC #8A7DFC #CA7DFC
triadic
#8A7DFC #FC8A7D #7DFC8A
tetradic
#8A7DFC #FC7DB0 #EFFC7D #7DFCCA
square
#8A7DFC #FC7DB0 #EFFC7D #7DFCCA
split-complementary
#8A7DFC #FCCA7D #B0FC7D
monochromatic
#1F06F9 #5441FB #8A7DFC #C0B9FD #E4E1FE

Accessibility & contrast

On white

3.27
#8A7DFC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.42
#8A7DFC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7DFC
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7DFC#FFFFFF#000000##000000
##8A7DFC1.003.276.426.42
#FFFFFF3.271.0021.0021.00
#0000006.4221.001.001.00
##0000006.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4292FF
Deuteranopia (green-blind)
#3E8AF9
Tritanopia (blue-blind)
#6598B1
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #8a7dfc;
/* rgb */ color: rgb(138, 125, 252);
/* oklch */ color: oklch(66.2% 0.182 284.9);
Tailwind
colors: {
  custom: {
    50: '#b2a3fe',
    500: '#8a7dfc',
    950: '#000000',
  },
}
SCSS
$custom: #8a7dfc;
$custom-light: #b2a3fe;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7dfc",
  "rgb": {
    "r": 138,
    "g": 125,
    "b": 252
  },
  "hsl": {
    "h": 246.142,
    "s": 95.489,
    "l": 73.922
  },
  "oklch": {
    "l": 0.66164,
    "c": 0.18245,
    "h": 284.9
  },
  "luminance": 0.27099
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A7DFC

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

Preview Lab → · Contrast checker → · Palette generator →

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