#9786FA#9786FA

#9786FA is a light, vivid blue. Relative luminance 0.305; OKLCH L 68.7% C 0.166 H 287.9°. Best body text is #000000 at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#9786FA
RGBrgb(151, 134, 250)
HSLhsl(249, 92%, 75%)
HSVhsv(249, 46%, 98%)
CMYKcmyk(39.6%, 46.4%, 0%, 2%)
CIE-LABlab(62.11, 33.40, -55.96)
CIE-LCHlch(62.11, 65.17, 300.83°)
OKLaboklab(68.67% 0.0512 -0.1583)
OKLCHoklch(68.67% 0.166 287.9)
XYZxyz(38.5381, 30.5304, 94.2864)
Luminance0.3053 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9786FA #E9FA86
analogous
#86AFFA #9786FA #D186FA
triadic
#9786FA #FA9786 #86FA97
tetradic
#9786FA #FA86AF #E9FA86 #86FAD1
square
#9786FA #FA86AF #E9FA86 #86FAD1
split-complementary
#9786FA #FAD186 #AFFA86
monochromatic
#3210F5 #644BF8 #9786FA #CAC1FC #E6E2FE

Accessibility & contrast

On white

2.96
#9786FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.11
#9786FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9786FA
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9786FA#FFFFFF#000000##000000
##9786FA1.002.967.117.11
#FFFFFF2.961.0021.0021.00
#0000007.1121.001.001.00
##0000007.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A99FE
Deuteranopia (green-blind)
#5993F7
Tritanopia (blue-blind)
#7B9DB4
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #9786fa;
/* rgb */ color: rgb(151, 134, 250);
/* oklch */ color: oklch(68.7% 0.166 287.9);
Tailwind
colors: {
  custom: {
    50: '#baa9fc',
    500: '#9786fa',
    950: '#000000',
  },
}
SCSS
$custom: #9786fa;
$custom-light: #baa9fc;
$custom-dark: #000000;
JSON
{
  "hex": "#9786fa",
  "rgb": {
    "r": 151,
    "g": 134,
    "b": 250
  },
  "hsl": {
    "h": 248.793,
    "s": 92.063,
    "l": 75.294
  },
  "oklch": {
    "l": 0.68671,
    "c": 0.16634,
    "h": 287.9
  },
  "luminance": 0.30532
}

Semantic roles & 50–950 ramp

primary
#9786FA
secondary
#F1F6D5
accent
#E600C4
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#121017
muted
#817F85

Preview Lab

Preview with #9786FA

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

Preview Lab → · Contrast checker → · Palette generator →

#9786FA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva