#786BE9#786BE9

#786BE9 is a mid, vivid blue. Relative luminance 0.204; OKLCH L 60.4% C 0.184 H 284.1°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#786BE9
RGBrgb(120, 107, 233)
HSLhsl(246, 74%, 67%)
HSVhsv(246, 54%, 91%)
CMYKcmyk(48.5%, 54.1%, 0%, 8.6%)
CIE-LABlab(52.28, 37.24, -62.42)
CIE-LCHlch(52.28, 72.68, 300.82°)
OKLaboklab(60.37% 0.0448 -0.1781)
OKLCHoklch(60.37% 0.184 284.1)
XYZxyz(27.7070, 20.3903, 79.5508)
Luminance0.2039 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BE9 #DCE96B
analogous
#6B9DE9 #786BE9 #B76BE9
triadic
#786BE9 #E9786B #6BE978
tetradic
#786BE9 #E96B9D #DCE96B #6BE9B7
square
#786BE9 #E96B9D #DCE96B #6BE9B7
split-complementary
#786BE9 #E9B76B #9DE96B
monochromatic
#2D1CBD #4736E1 #786BE9 #A9A0F1 #D9D6F9

Accessibility & contrast

On white

4.14
#786BE9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#786BE9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786BE9
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BE9#FFFFFF#000000##000000
##786BE91.004.145.085.08
#FFFFFF4.141.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2381ED
Deuteranopia (green-blind)
#1979E6
Tritanopia (blue-blind)
#4F87A0
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #786be9;
/* rgb */ color: rgb(120, 107, 233);
/* oklch */ color: oklch(60.4% 0.184 284.1);
Tailwind
colors: {
  custom: {
    50: '#a695f1',
    500: '#786be9',
    950: '#000000',
  },
}
SCSS
$custom: #786be9;
$custom-light: #a695f1;
$custom-dark: #000000;
JSON
{
  "hex": "#786be9",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 233
  },
  "hsl": {
    "h": 246.19,
    "s": 74.118,
    "l": 66.667
  },
  "oklch": {
    "l": 0.60372,
    "c": 0.18369,
    "h": 284.1
  },
  "luminance": 0.20392
}

Semantic roles & 50–950 ramp

primary
#786BE9
secondary
#E8ECC4
accent
#D60FC2
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786BE9

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

Preview Lab → · Contrast checker → · Palette generator →

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