#786CD5#786CD5

#786CD5 is a mid, vivid blue. Relative luminance 0.195; OKLCH L 59.2% C 0.156 H 285.8°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#786CD5
RGBrgb(120, 108, 213)
HSLhsl(247, 56%, 63%)
HSVhsv(247, 49%, 84%)
CMYKcmyk(43.7%, 49.3%, 0%, 16.5%)
CIE-LABlab(51.29, 30.80, -52.71)
CIE-LCHlch(51.29, 61.05, 300.30°)
OKLaboklab(59.25% 0.0424 -0.1496)
OKLCHoklch(59.25% 0.156 285.8)
XYZxyz(25.1151, 19.5213, 65.3826)
Luminance0.1952 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CD5 #C9D56C
analogous
#6C94D5 #786CD5 #AC6CD5
triadic
#786CD5 #D5786C #6CD578
tetradic
#786CD5 #D56C94 #C9D56C #6CD5AC
square
#786CD5 #D56C94 #C9D56C #6CD5AC
split-complementary
#786CD5 #D5AC6C #94D56C
monochromatic
#392C9A #4C3CC7 #786CD5 #A49CE3 #CFCBF0

Accessibility & contrast

On white

4.28
#786CD5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#786CD5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CD5
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CD5#FFFFFF#000000##000000
##786CD51.004.284.904.90
#FFFFFF4.281.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F7DD9
Deuteranopia (green-blind)
#3D77D3
Tritanopia (blue-blind)
#5B8296
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #786cd5;
/* rgb */ color: rgb(120, 108, 213);
/* oklch */ color: oklch(59.2% 0.156 285.8);
Tailwind
colors: {
  custom: {
    50: '#a496e2',
    500: '#786cd5',
    950: '#000000',
  },
}
SCSS
$custom: #786cd5;
$custom-light: #a496e2;
$custom-dark: #000000;
JSON
{
  "hex": "#786cd5",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 213
  },
  "hsl": {
    "h": 246.857,
    "s": 55.556,
    "l": 62.941
  },
  "oklch": {
    "l": 0.59245,
    "c": 0.15552,
    "h": 285.8
  },
  "luminance": 0.19522
}

Semantic roles & 50–950 ramp

primary
#786CD5
secondary
#DDE1BB
accent
#C322B1
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#100D15
muted
#7F7E83

Preview Lab

Preview with #786CD5

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

Preview Lab → · Contrast checker → · Palette generator →

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