#786BCB#786BCB

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

Color values

HEX#786BCB
RGBrgb(120, 107, 203)
HSLhsl(248, 48%, 61%)
HSVhsv(248, 47%, 80%)
CMYKcmyk(40.9%, 47.3%, 0%, 20.4%)
CIE-LABlab(50.48, 28.53, -48.32)
CIE-LCHlch(50.48, 56.11, 300.56°)
OKLaboklab(58.45% 0.0426 -0.1367)
OKLCHoklch(58.45% 0.143 287.3)
XYZxyz(23.7799, 18.8194, 58.8679)
Luminance0.1882 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BCB #BECB6B
analogous
#6B8ECB #786BCB #A86BCB
triadic
#786BCB #CB786B #6BCB78
tetradic
#786BCB #CB6B8E #BECB6B #6BCBA8
square
#786BCB #CB6B8E #BECB6B #6BCBA8
split-complementary
#786BCB #CBA86B #8ECB6B
monochromatic
#3D318B #5141B8 #786BCB #A198DB #CBC6EB

Accessibility & contrast

On white

4.41
#786BCB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#786BCB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786BCB
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BCB#FFFFFF#000000##000000
##786BCB1.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#467BCE
Deuteranopia (green-blind)
#4576C9
Tritanopia (blue-blind)
#607E91
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #786bcb;
/* rgb */ color: rgb(120, 107, 203);
/* oklch */ color: oklch(58.4% 0.143 287.3);
Tailwind
colors: {
  custom: {
    50: '#a395db',
    500: '#786bcb',
    950: '#000000',
  },
}
SCSS
$custom: #786bcb;
$custom-light: #a395db;
$custom-dark: #000000;
JSON
{
  "hex": "#786bcb",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 203
  },
  "hsl": {
    "h": 248.125,
    "s": 48,
    "l": 60.784
  },
  "oklch": {
    "l": 0.58446,
    "c": 0.14323,
    "h": 287.3
  },
  "luminance": 0.1882
}

Semantic roles & 50–950 ramp

primary
#786BCB
secondary
#D6DBB7
accent
#BB2AA8
background
#FAF9FD
surface
#F4F1FB
border
#CECBD4
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #786BCB

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

Preview Lab → · Contrast checker → · Palette generator →

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