#786CD3#786CD3

#786CD3 is a mid, vivid blue. Relative luminance 0.194; OKLCH L 59.1% C 0.153 H 286.1°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#786CD3
RGBrgb(120, 108, 211)
HSLhsl(247, 54%, 63%)
HSVhsv(247, 49%, 83%)
CMYKcmyk(43.1%, 48.8%, 0%, 17.3%)
CIE-LABlab(51.18, 30.22, -51.76)
CIE-LCHlch(51.18, 59.94, 300.28°)
OKLaboklab(59.12% 0.0423 -0.1468)
OKLCHoklch(59.12% 0.153 286.1)
XYZxyz(24.8628, 19.4204, 64.0539)
Luminance0.1942 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CD3 #C7D36C
analogous
#6C94D3 #786CD3 #AB6CD3
triadic
#786CD3 #D3786C #6CD378
tetradic
#786CD3 #D36C94 #C7D36C #6CD3AB
square
#786CD3 #D36C94 #C7D36C #6CD3AB
split-complementary
#786CD3 #D3AB6C #94D36C
monochromatic
#3A2D97 #4D3DC5 #786CD3 #A39BE1 #CFCAEF

Accessibility & contrast

On white

4.30
#786CD3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#786CD3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CD3
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CD3#FFFFFF#000000##000000
##786CD31.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#417DD7
Deuteranopia (green-blind)
#3F77D1
Tritanopia (blue-blind)
#5C8195
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #786cd3;
/* rgb */ color: rgb(120, 108, 211);
/* oklch */ color: oklch(59.1% 0.153 286.1);
Tailwind
colors: {
  custom: {
    50: '#a496e1',
    500: '#786cd3',
    950: '#000000',
  },
}
SCSS
$custom: #786cd3;
$custom-light: #a496e1;
$custom-dark: #000000;
JSON
{
  "hex": "#786cd3",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 211
  },
  "hsl": {
    "h": 246.99,
    "s": 53.927,
    "l": 62.549
  },
  "oklch": {
    "l": 0.5912,
    "c": 0.1528,
    "h": 286.1
  },
  "luminance": 0.19421
}

Semantic roles & 50–950 ramp

primary
#786CD3
secondary
#DCE0BB
accent
#C124AF
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#100D15
muted
#7F7E83

Preview Lab

Preview with #786CD3

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

Preview Lab → · Contrast checker → · Palette generator →

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