#786BC0#786BC0

#786BC0 is a mid, vivid blue. Relative luminance 0.183; OKLCH L 57.8% C 0.128 H 288.8°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#786BC0
RGBrgb(120, 107, 192)
HSLhsl(249, 40%, 59%)
HSVhsv(249, 44%, 75%)
CMYKcmyk(37.5%, 44.3%, 0%, 24.7%)
CIE-LABlab(49.87, 25.43, -42.96)
CIE-LCHlch(49.87, 49.93, 300.62°)
OKLaboklab(57.8% 0.0411 -0.1211)
OKLCHoklch(57.8% 0.128 288.8)
XYZxyz(22.5153, 18.3136, 52.2075)
Luminance0.1831 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BC0 #B3C06B
analogous
#6B88C0 #786BC0 #A26BC0
triadic
#786BC0 #C0786B #6BC078
tetradic
#786BC0 #C06B88 #B3C06B #6BC0A2
square
#786BC0 #C06B88 #B3C06B #6BC0A2
split-complementary
#786BC0 #C0A26B #88C06B
monochromatic
#40357C #5647A7 #786BC0 #9F96D2 #C6C1E5

Accessibility & contrast

On white

4.50
#786BC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#786BC0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786BC0
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BC0#FFFFFF#000000##000000
##786BC01.004.504.664.66
#FFFFFF4.501.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E78C3
Deuteranopia (green-blind)
#4E75BE
Tritanopia (blue-blind)
#657C8C
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #786bc0;
/* rgb */ color: rgb(120, 107, 192);
/* oklch */ color: oklch(57.8% 0.128 288.8);
Tailwind
colors: {
  custom: {
    50: '#a295d3',
    500: '#786bc0',
    950: '#000000',
  },
}
SCSS
$custom: #786bc0;
$custom-light: #a295d3;
$custom-dark: #000000;
JSON
{
  "hex": "#786bc0",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 192
  },
  "hsl": {
    "h": 249.176,
    "s": 40.284,
    "l": 58.627
  },
  "oklch": {
    "l": 0.57798,
    "c": 0.12788,
    "h": 288.8
  },
  "luminance": 0.18314
}

Semantic roles & 50–950 ramp

primary
#786BC0
secondary
#CFD4B3
accent
#D058BE
background
#FAF9FD
surface
#F4F1FA
border
#CECBD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #786BC0

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

Preview Lab → · Contrast checker → · Palette generator →

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