#786BE3#786BE3

#786BE3 is a mid, vivid blue. Relative luminance 0.201; OKLCH L 60.0% C 0.176 H 284.7°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#786BE3
RGBrgb(120, 107, 227)
HSLhsl(247, 68%, 65%)
HSVhsv(247, 53%, 89%)
CMYKcmyk(47.1%, 52.9%, 0%, 11%)
CIE-LABlab(51.90, 35.47, -59.65)
CIE-LCHlch(51.90, 69.40, 300.74°)
OKLaboklab(59.97% 0.0446 -0.17)
OKLCHoklch(59.97% 0.176 284.7)
XYZxyz(26.8645, 20.0533, 75.1133)
Luminance0.2006 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BE3 #D6E36B
analogous
#6B9AE3 #786BE3 #B46BE3
triadic
#786BE3 #E3786B #6BE378
tetradic
#786BE3 #E36B9A #D6E36B #6BE3B4
square
#786BE3 #E36B9A #D6E36B #6BE3B4
split-complementary
#786BE3 #E3B46B #9AE36B
monochromatic
#3122B2 #4938D9 #786BE3 #A79EED #D6D2F6

Accessibility & contrast

On white

4.19
#786BE3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#786BE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786BE3
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BE3#FFFFFF#000000##000000
##786BE31.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D7FE7
Deuteranopia (green-blind)
#2778E0
Tritanopia (blue-blind)
#53859D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #786be3;
/* rgb */ color: rgb(120, 107, 227);
/* oklch */ color: oklch(60.0% 0.176 284.7);
Tailwind
colors: {
  custom: {
    50: '#a595ec',
    500: '#786be3',
    950: '#000000',
  },
}
SCSS
$custom: #786be3;
$custom-light: #a595ec;
$custom-dark: #000000;
JSON
{
  "hex": "#786be3",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 227
  },
  "hsl": {
    "h": 246.5,
    "s": 68.182,
    "l": 65.49
  },
  "oklch": {
    "l": 0.5997,
    "c": 0.17577,
    "h": 284.7
  },
  "luminance": 0.20055
}

Semantic roles & 50–950 ramp

primary
#786BE3
secondary
#E5E9C1
accent
#D015BC
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786BE3

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

Preview Lab → · Contrast checker → · Palette generator →

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