#786EE3#786EE3

#786EE3 is a mid, vivid blue. Relative luminance 0.207; OKLCH L 60.5% C 0.172 H 283.9°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#786EE3
RGBrgb(120, 110, 227)
HSLhsl(245, 68%, 66%)
HSVhsv(245, 52%, 89%)
CMYKcmyk(47.1%, 51.5%, 0%, 11%)
CIE-LABlab(52.61, 33.70, -58.51)
CIE-LCHlch(52.61, 67.52, 299.94°)
OKLaboklab(60.5% 0.0412 -0.1666)
OKLCHoklch(60.5% 0.172 283.9)
XYZxyz(27.1827, 20.6897, 75.2194)
Luminance0.2069 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786EE3 #D9E36E
analogous
#6E9EE3 #786EE3 #B26EE3
triadic
#786EE3 #E3786E #6EE378
tetradic
#786EE3 #E36E9E #D9E36E #6EE3B2
square
#786EE3 #E36E9E #D9E36E #6EE3B2
split-complementary
#786EE3 #E3B26E #9EE36E
monochromatic
#2F23B4 #483BD9 #786EE3 #A8A1ED #D8D5F7

Accessibility & contrast

On white

4.09
#786EE3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#786EE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786EE3
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786EE3#FFFFFF#000000##000000
##786EE31.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3581E7
Deuteranopia (green-blind)
#2F7AE0
Tritanopia (blue-blind)
#53879E
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #786ee3;
/* rgb */ color: rgb(120, 110, 227);
/* oklch */ color: oklch(60.5% 0.172 283.9);
Tailwind
colors: {
  custom: {
    50: '#a597ec',
    500: '#786ee3',
    950: '#000000',
  },
}
SCSS
$custom: #786ee3;
$custom-light: #a597ec;
$custom-dark: #000000;
JSON
{
  "hex": "#786ee3",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 227
  },
  "hsl": {
    "h": 245.128,
    "s": 67.63,
    "l": 66.078
  },
  "oklch": {
    "l": 0.60501,
    "c": 0.17166,
    "h": 283.9
  },
  "luminance": 0.20691
}

Semantic roles & 50–950 ramp

primary
#786EE3
secondary
#E6EAC3
accent
#D016C0
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786EE3

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

Preview Lab → · Contrast checker → · Palette generator →

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