#786DBE#786DBE

#786DBE is a mid, vivid blue. Relative luminance 0.186; OKLCH L 58.1% C 0.122 H 288.2°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#786DBE
RGBrgb(120, 109, 190)
HSLhsl(248, 38%, 59%)
HSVhsv(248, 43%, 75%)
CMYKcmyk(36.8%, 42.6%, 0%, 25.5%)
CIE-LABlab(50.27, 23.68, -41.18)
CIE-LCHlch(50.27, 47.50, 299.90°)
OKLaboklab(58.07% 0.0381 -0.1159)
OKLCHoklch(58.07% 0.122 288.2)
XYZxyz(22.5061, 18.6474, 51.1187)
Luminance0.1865 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DBE #B3BE6D
analogous
#6D8ABE #786DBE #A06DBE
triadic
#786DBE #BE786D #6DBE78
tetradic
#786DBE #BE6D8A #B3BE6D #6DBEA0
square
#786DBE #BE6D8A #B3BE6D #6DBEA0
split-complementary
#786DBE #BEA06D #8ABE6D
monochromatic
#40367A #5649A5 #786DBE #9F97D1 #C6C2E4

Accessibility & contrast

On white

4.44
#786DBE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#786DBE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786DBE
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786DBE#FFFFFF#000000##000000
##786DBE1.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5279C1
Deuteranopia (green-blind)
#5176BC
Tritanopia (blue-blind)
#667D8C
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #786dbe;
/* rgb */ color: rgb(120, 109, 190);
/* oklch */ color: oklch(58.1% 0.122 288.2);
Tailwind
colors: {
  custom: {
    50: '#a297d2',
    500: '#786dbe',
    950: '#000000',
  },
}
SCSS
$custom: #786dbe;
$custom-light: #a297d2;
$custom-dark: #000000;
JSON
{
  "hex": "#786dbe",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 190
  },
  "hsl": {
    "h": 248.148,
    "s": 38.389,
    "l": 58.627
  },
  "oklch": {
    "l": 0.58065,
    "c": 0.12199,
    "h": 288.2
  },
  "luminance": 0.18648
}

Semantic roles & 50–950 ramp

primary
#786DBE
secondary
#CFD3B3
accent
#CE59BE
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0D14
muted
#7F7E82

Preview Lab

Preview with #786DBE

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

Preview Lab → · Contrast checker → · Palette generator →

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