#786BCA#786BCA

#786BCA is a mid, vivid blue. Relative luminance 0.188; OKLCH L 58.4% C 0.142 H 287.4°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#786BCA
RGBrgb(120, 107, 202)
HSLhsl(248, 47%, 61%)
HSVhsv(248, 47%, 79%)
CMYKcmyk(40.6%, 47%, 0%, 20.8%)
CIE-LABlab(50.42, 28.25, -47.84)
CIE-LCHlch(50.42, 55.55, 300.56°)
OKLaboklab(58.39% 0.0425 -0.1353)
OKLCHoklch(58.39% 0.142 287.4)
XYZxyz(23.6611, 18.7719, 58.2423)
Luminance0.1877 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BCA #BDCA6B
analogous
#6B8DCA #786BCA #A86BCA
triadic
#786BCA #CA786B #6BCA78
tetradic
#786BCA #CA6B8D #BDCA6B #6BCAA8
square
#786BCA #CA6B8D #BDCA6B #6BCAA8
split-complementary
#786BCA #CAA86B #8DCA6B
monochromatic
#3D3189 #5141B6 #786BCA #A198DA #CAC5EA

Accessibility & contrast

On white

4.42
#786BCA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#786BCA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786BCA
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BCA#FFFFFF#000000##000000
##786BCA1.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#477ACD
Deuteranopia (green-blind)
#4675C8
Tritanopia (blue-blind)
#617E91
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #786bca;
/* rgb */ color: rgb(120, 107, 202);
/* oklch */ color: oklch(58.4% 0.142 287.4);
Tailwind
colors: {
  custom: {
    50: '#a395da',
    500: '#786bca',
    950: '#000000',
  },
}
SCSS
$custom: #786bca;
$custom-light: #a395da;
$custom-dark: #000000;
JSON
{
  "hex": "#786bca",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 202
  },
  "hsl": {
    "h": 248.211,
    "s": 47.264,
    "l": 60.588
  },
  "oklch": {
    "l": 0.58386,
    "c": 0.14185,
    "h": 287.4
  },
  "luminance": 0.18773
}

Semantic roles & 50–950 ramp

primary
#786BCA
secondary
#D6DAB6
accent
#BB2BA7
background
#FAF9FD
surface
#F4F1FB
border
#CECBD4
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #786BCA

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

Preview Lab → · Contrast checker → · Palette generator →

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