#786DC2#786DC2

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

Color values

HEX#786DC2
RGBrgb(120, 109, 194)
HSLhsl(248, 41%, 59%)
HSVhsv(248, 44%, 76%)
CMYKcmyk(38.1%, 43.8%, 0%, 23.9%)
CIE-LABlab(50.48, 24.79, -43.15)
CIE-LCHlch(50.48, 49.76, 299.88°)
OKLaboklab(58.29% 0.0388 -0.1216)
OKLCHoklch(58.29% 0.128 287.7)
XYZxyz(22.9493, 18.8247, 53.4528)
Luminance0.1883 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DC2 #B7C26D
analogous
#6D8DC2 #786DC2 #A36DC2
triadic
#786DC2 #C2786D #6DC278
tetradic
#786DC2 #C26D8D #B7C26D #6DC2A3
square
#786DC2 #C26D8D #B7C26D #6DC2A3
split-complementary
#786DC2 #C2A36D #8DC26D
monochromatic
#3F357F #5447AB #786DC2 #A098D4 #C8C3E6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##786DC2#FFFFFF#000000##000000
##786DC21.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)
#4F7AC5
Deuteranopia (green-blind)
#4F76C0
Tritanopia (blue-blind)
#647E8E
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #786dc2;
/* rgb */ color: rgb(120, 109, 194);
/* oklch */ color: oklch(58.3% 0.128 287.7);
Tailwind
colors: {
  custom: {
    50: '#a297d5',
    500: '#786dc2',
    950: '#000000',
  },
}
SCSS
$custom: #786dc2;
$custom-light: #a297d5;
$custom-dark: #000000;
JSON
{
  "hex": "#786dc2",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 194
  },
  "hsl": {
    "h": 247.765,
    "s": 41.063,
    "l": 59.412
  },
  "oklch": {
    "l": 0.58292,
    "c": 0.12766,
    "h": 287.7
  },
  "luminance": 0.18825
}

Semantic roles & 50–950 ramp

primary
#786DC2
secondary
#D2D6B5
accent
#D157C1
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #786DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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