#786EC3#786EC3

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

Color values

HEX#786EC3
RGBrgb(120, 110, 195)
HSLhsl(247, 41%, 60%)
HSVhsv(247, 44%, 76%)
CMYKcmyk(38.5%, 43.6%, 0%, 23.5%)
CIE-LABlab(50.79, 24.47, -43.24)
CIE-LCHlch(50.79, 49.69, 299.51°)
OKLaboklab(58.54% 0.0376 -0.1219)
OKLCHoklch(58.54% 0.128 287.2)
XYZxyz(23.1693, 19.0843, 54.0821)
Luminance0.1908 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786EC3 #B9C36E
analogous
#6E8FC3 #786EC3 #A36EC3
triadic
#786EC3 #C3786E #6EC378
tetradic
#786EC3 #C36E8F #B9C36E #6EC3A3
square
#786EC3 #C36E8F #B9C36E #6EC3A3
split-complementary
#786EC3 #C3A36E #8FC36E
monochromatic
#3E3581 #5347AC #786EC3 #A099D5 #C9C5E7

Accessibility & contrast

On white

4.36
#786EC3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#786EC3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786EC3
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786EC3#FFFFFF#000000##000000
##786EC31.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#507BC6
Deuteranopia (green-blind)
#4F77C1
Tritanopia (blue-blind)
#647F8F
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #786ec3;
/* rgb */ color: rgb(120, 110, 195);
/* oklch */ color: oklch(58.5% 0.128 287.2);
Tailwind
colors: {
  custom: {
    50: '#a297d5',
    500: '#786ec3',
    950: '#000000',
  },
}
SCSS
$custom: #786ec3;
$custom-light: #a297d5;
$custom-dark: #000000;
JSON
{
  "hex": "#786ec3",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 195
  },
  "hsl": {
    "h": 247.059,
    "s": 41.463,
    "l": 59.804
  },
  "oklch": {
    "l": 0.58539,
    "c": 0.12757,
    "h": 287.2
  },
  "luminance": 0.19085
}

Semantic roles & 50–950 ramp

primary
#786EC3
secondary
#D3D7B6
accent
#D157C3
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #786EC3

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

Preview Lab → · Contrast checker → · Palette generator →

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