#786BC3#786BC3

#786BC3 is a mid, vivid blue. Relative luminance 0.184; OKLCH L 58.0% C 0.132 H 288.4°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#786BC3
RGBrgb(120, 107, 195)
HSLhsl(249, 42%, 59%)
HSVhsv(249, 45%, 76%)
CMYKcmyk(38.5%, 45.1%, 0%, 23.5%)
CIE-LABlab(50.03, 26.27, -44.43)
CIE-LCHlch(50.03, 51.62, 300.59°)
OKLaboklab(57.97% 0.0416 -0.1254)
OKLCHoklch(57.97% 0.132 288.4)
XYZxyz(22.8510, 18.4479, 53.9760)
Luminance0.1845 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BC3 #B6C36B
analogous
#6B8AC3 #786BC3 #A46BC3
triadic
#786BC3 #C3786B #6BC378
tetradic
#786BC3 #C36B8A #B6C36B #6BC3A4
square
#786BC3 #C36B8A #B6C36B #6BC3A4
split-complementary
#786BC3 #C3A46B #8AC36B
monochromatic
#3F3480 #5545AB #786BC3 #A097D5 #C7C2E6

Accessibility & contrast

On white

4.48
#786BC3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#786BC3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786BC3
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BC3#FFFFFF#000000##000000
##786BC31.004.484.694.69
#FFFFFF4.481.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C79C6
Deuteranopia (green-blind)
#4B75C1
Tritanopia (blue-blind)
#647C8D
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #786bc3;
/* rgb */ color: rgb(120, 107, 195);
/* oklch */ color: oklch(58.0% 0.132 288.4);
Tailwind
colors: {
  custom: {
    50: '#a295d5',
    500: '#786bc3',
    950: '#000000',
  },
}
SCSS
$custom: #786bc3;
$custom-light: #a295d5;
$custom-dark: #000000;
JSON
{
  "hex": "#786bc3",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 195
  },
  "hsl": {
    "h": 248.864,
    "s": 42.308,
    "l": 59.216
  },
  "oklch": {
    "l": 0.57971,
    "c": 0.13209,
    "h": 288.4
  },
  "luminance": 0.18449
}

Semantic roles & 50–950 ramp

primary
#786BC3
secondary
#D1D6B4
accent
#D256C0
background
#FAF9FD
surface
#F4F1FA
border
#CECBD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #786BC3

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

Preview Lab → · Contrast checker → · Palette generator →

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