#786CC9#786CC9

#786CC9 is a mid, vivid blue. Relative luminance 0.189; OKLCH L 58.5% C 0.139 H 287.2°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#786CC9
RGBrgb(120, 108, 201)
HSLhsl(248, 46%, 61%)
HSVhsv(248, 46%, 79%)
CMYKcmyk(40.3%, 46.3%, 0%, 21.2%)
CIE-LABlab(50.61, 27.36, -46.96)
CIE-LCHlch(50.61, 54.35, 300.23°)
OKLaboklab(58.51% 0.0411 -0.1328)
OKLCHoklch(58.51% 0.139 287.2)
XYZxyz(23.6480, 18.9344, 57.6557)
Luminance0.1893 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CC9 #BDC96C
analogous
#6C8EC9 #786CC9 #A66CC9
triadic
#786CC9 #C9786C #6CC978
tetradic
#786CC9 #C96C8E #BDC96C #6CC9A6
square
#786CC9 #C96C8E #BDC96C #6CC9A6
split-complementary
#786CC9 #C9A66C #8EC96C
monochromatic
#3D3288 #5143B5 #786CC9 #A199D9 #CAC6EA

Accessibility & contrast

On white

4.39
#786CC9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#786CC9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CC9
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CC9#FFFFFF#000000##000000
##786CC91.004.394.794.79
#FFFFFF4.391.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#497BCC
Deuteranopia (green-blind)
#4876C7
Tritanopia (blue-blind)
#617F91
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #786cc9;
/* rgb */ color: rgb(120, 108, 201);
/* oklch */ color: oklch(58.5% 0.139 287.2);
Tailwind
colors: {
  custom: {
    50: '#a396da',
    500: '#786cc9',
    950: '#000000',
  },
}
SCSS
$custom: #786cc9;
$custom-light: #a396da;
$custom-dark: #000000;
JSON
{
  "hex": "#786cc9",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 201
  },
  "hsl": {
    "h": 247.742,
    "s": 46.269,
    "l": 60.588
  },
  "oklch": {
    "l": 0.58512,
    "c": 0.13898,
    "h": 287.2
  },
  "luminance": 0.18935
}

Semantic roles & 50–950 ramp

primary
#786CC9
secondary
#D6DAB7
accent
#B92CA7
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #786CC9

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

Preview Lab → · Contrast checker → · Palette generator →

#786CC9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva