#786BE7#786BE7

#786BE7 is a mid, vivid blue. Relative luminance 0.203; OKLCH L 60.2% C 0.181 H 284.3°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#786BE7
RGBrgb(120, 107, 231)
HSLhsl(246, 72%, 66%)
HSVhsv(246, 54%, 91%)
CMYKcmyk(48.1%, 53.7%, 0%, 9.4%)
CIE-LABlab(52.15, 36.65, -61.50)
CIE-LCHlch(52.15, 71.59, 300.79°)
OKLaboklab(60.24% 0.0448 -0.1754)
OKLCHoklch(60.24% 0.181 284.3)
XYZxyz(27.4229, 20.2767, 78.0546)
Luminance0.2028 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BE7 #DAE76B
analogous
#6B9CE7 #786BE7 #B66BE7
triadic
#786BE7 #E7786B #6BE778
tetradic
#786BE7 #E76B9C #DAE76B #6BE7B6
square
#786BE7 #E76B9C #DAE76B #6BE7B6
split-complementary
#786BE7 #E7B66B #9CE76B
monochromatic
#2E1EBA #4836DE #786BE7 #A8A0F0 #D8D4F8

Accessibility & contrast

On white

4.15
#786BE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#786BE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786BE7
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BE7#FFFFFF#000000##000000
##786BE71.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2680EB
Deuteranopia (green-blind)
#1F78E4
Tritanopia (blue-blind)
#51869F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #786be7;
/* rgb */ color: rgb(120, 107, 231);
/* oklch */ color: oklch(60.2% 0.181 284.3);
Tailwind
colors: {
  custom: {
    50: '#a695ef',
    500: '#786be7',
    950: '#000000',
  },
}
SCSS
$custom: #786be7;
$custom-light: #a695ef;
$custom-dark: #000000;
JSON
{
  "hex": "#786be7",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 231
  },
  "hsl": {
    "h": 246.29,
    "s": 72.093,
    "l": 66.275
  },
  "oklch": {
    "l": 0.60237,
    "c": 0.18107,
    "h": 284.3
  },
  "luminance": 0.20278
}

Semantic roles & 50–950 ramp

primary
#786BE7
secondary
#E7EBC3
accent
#D411C0
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786BE7

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

Preview Lab → · Contrast checker → · Palette generator →

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