#786DD6#786DD6

#786DD6 is a mid, vivid blue. Relative luminance 0.198; OKLCH L 59.5% C 0.155 H 285.4°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#786DD6
RGBrgb(120, 109, 214)
HSLhsl(246, 56%, 63%)
HSVhsv(246, 49%, 84%)
CMYKcmyk(43.9%, 49.1%, 0%, 16.1%)
CIE-LABlab(51.59, 30.49, -52.80)
CIE-LCHlch(51.59, 60.97, 300.01°)
OKLaboklab(59.49% 0.0413 -0.1499)
OKLCHoklch(59.49% 0.155 285.4)
XYZxyz(25.3485, 19.7843, 66.0884)
Luminance0.1978 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DD6 #CBD66D
analogous
#6D96D6 #786DD6 #AC6DD6
triadic
#786DD6 #D6786D #6DD678
tetradic
#786DD6 #D66D96 #CBD66D #6DD6AC
square
#786DD6 #D66D96 #CBD66D #6DD6AC
split-complementary
#786DD6 #D6AC6D #96D66D
monochromatic
#382C9D #4C3DC9 #786DD6 #A49DE3 #D0CDF1

Accessibility & contrast

On white

4.24
#786DD6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#786DD6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786DD6
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786DD6#FFFFFF#000000##000000
##786DD61.004.244.964.96
#FFFFFF4.241.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#407EDA
Deuteranopia (green-blind)
#3D78D4
Tritanopia (blue-blind)
#5B8397
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #786dd6;
/* rgb */ color: rgb(120, 109, 214);
/* oklch */ color: oklch(59.5% 0.155 285.4);
Tailwind
colors: {
  custom: {
    50: '#a497e3',
    500: '#786dd6',
    950: '#000000',
  },
}
SCSS
$custom: #786dd6;
$custom-light: #a497e3;
$custom-dark: #000000;
JSON
{
  "hex": "#786dd6",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 214
  },
  "hsl": {
    "h": 246.286,
    "s": 56.15,
    "l": 63.333
  },
  "oklch": {
    "l": 0.5949,
    "c": 0.15546,
    "h": 285.4
  },
  "luminance": 0.19785
}

Semantic roles & 50–950 ramp

primary
#786DD6
secondary
#DEE2BD
accent
#C422B3
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100D15
muted
#7F7E84

Preview Lab

Preview with #786DD6

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

Preview Lab → · Contrast checker → · Palette generator →

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