#786DE3#786DE3

#786DE3 is a mid, vivid blue. Relative luminance 0.205; OKLCH L 60.3% C 0.173 H 284.2°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#786DE3
RGBrgb(120, 109, 227)
HSLhsl(246, 68%, 66%)
HSVhsv(246, 52%, 89%)
CMYKcmyk(47.1%, 52%, 0%, 11%)
CIE-LABlab(52.37, 34.29, -58.89)
CIE-LCHlch(52.37, 68.15, 300.21°)
OKLaboklab(60.32% 0.0423 -0.1678)
OKLCHoklch(60.32% 0.173 284.2)
XYZxyz(27.0754, 20.4751, 75.1836)
Luminance0.2048 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DE3 #D8E36D
analogous
#6D9DE3 #786DE3 #B36DE3
triadic
#786DE3 #E3786D #6DE378
tetradic
#786DE3 #E36D9D #D8E36D #6DE3B3
square
#786DE3 #E36D9D #D8E36D #6DE3B3
split-complementary
#786DE3 #E3B36D #9DE36D
monochromatic
#3022B3 #493AD9 #786DE3 #A7A0ED #D7D4F7

Accessibility & contrast

On white

4.12
#786DE3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#786DE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786DE3
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786DE3#FFFFFF#000000##000000
##786DE31.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3281E7
Deuteranopia (green-blind)
#2C79E0
Tritanopia (blue-blind)
#53879E
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #786de3;
/* rgb */ color: rgb(120, 109, 227);
/* oklch */ color: oklch(60.3% 0.173 284.2);
Tailwind
colors: {
  custom: {
    50: '#a597ec',
    500: '#786de3',
    950: '#000000',
  },
}
SCSS
$custom: #786de3;
$custom-light: #a597ec;
$custom-dark: #000000;
JSON
{
  "hex": "#786de3",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 227
  },
  "hsl": {
    "h": 245.593,
    "s": 67.816,
    "l": 65.882
  },
  "oklch": {
    "l": 0.60323,
    "c": 0.17303,
    "h": 284.2
  },
  "luminance": 0.20476
}

Semantic roles & 50–950 ramp

primary
#786DE3
secondary
#E6E9C2
accent
#D016BE
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786DE3

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

Preview Lab → · Contrast checker → · Palette generator →

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