#786CD2#786CD2

#786CD2 is a mid, vivid blue. Relative luminance 0.194; OKLCH L 59.1% C 0.151 H 286.2°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#786CD2
RGBrgb(120, 108, 210)
HSLhsl(247, 53%, 62%)
HSVhsv(247, 49%, 82%)
CMYKcmyk(42.9%, 48.6%, 0%, 17.6%)
CIE-LABlab(51.12, 29.93, -51.28)
CIE-LCHlch(51.12, 59.38, 300.27°)
OKLaboklab(59.06% 0.0422 -0.1454)
OKLCHoklch(59.06% 0.151 286.2)
XYZxyz(24.7378, 19.3704, 63.3957)
Luminance0.1937 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CD2 #C6D26C
analogous
#6C93D2 #786CD2 #AB6CD2
triadic
#786CD2 #D2786C #6CD278
tetradic
#786CD2 #D26C93 #C6D26C #6CD2AB
square
#786CD2 #D26C93 #C6D26C #6CD2AB
split-complementary
#786CD2 #D2AB6C #93D26C
monochromatic
#3A2E96 #4D3DC4 #786CD2 #A39BE0 #CECAEF

Accessibility & contrast

On white

4.31
#786CD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#786CD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CD2
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CD2#FFFFFF#000000##000000
##786CD21.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#427DD6
Deuteranopia (green-blind)
#4077D0
Tritanopia (blue-blind)
#5D8195
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #786cd2;
/* rgb */ color: rgb(120, 108, 210);
/* oklch */ color: oklch(59.1% 0.151 286.2);
Tailwind
colors: {
  custom: {
    50: '#a496e0',
    500: '#786cd2',
    950: '#000000',
  },
}
SCSS
$custom: #786cd2;
$custom-light: #a496e0;
$custom-dark: #000000;
JSON
{
  "hex": "#786cd2",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 210
  },
  "hsl": {
    "h": 247.059,
    "s": 53.125,
    "l": 62.353
  },
  "oklch": {
    "l": 0.59058,
    "c": 0.15142,
    "h": 286.2
  },
  "luminance": 0.19371
}

Semantic roles & 50–950 ramp

primary
#786CD2
secondary
#DBE0BA
accent
#C125AE
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#100D15
muted
#7F7E83

Preview Lab

Preview with #786CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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