#786BE6#786BE6

#786BE6 is a mid, vivid blue. Relative luminance 0.202; OKLCH L 60.2% C 0.180 H 284.4°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#786BE6
RGBrgb(120, 107, 230)
HSLhsl(246, 71%, 66%)
HSVhsv(246, 53%, 90%)
CMYKcmyk(47.8%, 53.5%, 0%, 9.8%)
CIE-LABlab(52.09, 36.35, -61.04)
CIE-LCHlch(52.09, 71.04, 300.78°)
OKLaboklab(60.17% 0.0447 -0.1741)
OKLCHoklch(60.17% 0.18 284.4)
XYZxyz(27.2821, 20.2203, 77.3129)
Luminance0.2022 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BE6 #D9E66B
analogous
#6B9BE6 #786BE6 #B56BE6
triadic
#786BE6 #E6786B #6BE678
tetradic
#786BE6 #E66B9B #D9E66B #6BE6B5
square
#786BE6 #E66B9B #D9E66B #6BE6B5
split-complementary
#786BE6 #E6B56B #9BE66B
monochromatic
#2F1FB8 #4837DD #786BE6 #A89FEF #D8D4F8

Accessibility & contrast

On white

4.16
#786BE6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#786BE6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786BE6
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BE6#FFFFFF#000000##000000
##786BE61.004.165.045.04
#FFFFFF4.161.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2880EA
Deuteranopia (green-blind)
#2178E3
Tritanopia (blue-blind)
#51869E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #786be6;
/* rgb */ color: rgb(120, 107, 230);
/* oklch */ color: oklch(60.2% 0.180 284.4);
Tailwind
colors: {
  custom: {
    50: '#a695ef',
    500: '#786be6',
    950: '#000000',
  },
}
SCSS
$custom: #786be6;
$custom-light: #a695ef;
$custom-dark: #000000;
JSON
{
  "hex": "#786be6",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 230
  },
  "hsl": {
    "h": 246.341,
    "s": 71.098,
    "l": 66.078
  },
  "oklch": {
    "l": 0.6017,
    "c": 0.17974,
    "h": 284.4
  },
  "luminance": 0.20222
}

Semantic roles & 50–950 ramp

primary
#786BE6
secondary
#E6EBC2
accent
#D312BF
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786BE6

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

Preview Lab → · Contrast checker → · Palette generator →

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