#786EDB#786EDB

#786EDB is a mid, vivid blue. Relative luminance 0.203; OKLCH L 60.0% C 0.161 H 284.6°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#786EDB
RGBrgb(120, 110, 219)
HSLhsl(246, 60%, 65%)
HSVhsv(246, 50%, 86%)
CMYKcmyk(45.2%, 49.8%, 0%, 14.1%)
CIE-LABlab(52.13, 31.35, -54.77)
CIE-LCHlch(52.13, 63.11, 299.79°)
OKLaboklab(59.99% 0.0406 -0.1557)
OKLCHoklch(59.99% 0.161 284.6)
XYZxyz(26.1041, 20.2583, 69.5389)
Luminance0.2026 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786EDB #D1DB6E
analogous
#6E9ADB #786EDB #AF6EDB
triadic
#786EDB #DB786E #6EDB78
tetradic
#786EDB #DB6E9A #D1DB6E #6EDBAF
square
#786EDB #DB6E9A #D1DB6E #6EDBAF
split-complementary
#786EDB #DBAF6E #9ADB6E
monochromatic
#3529A6 #4A3DCF #786EDB #A69FE7 #D3D0F3

Accessibility & contrast

On white

4.16
#786EDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#786EDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786EDB
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786EDB#FFFFFF#000000##000000
##786EDB1.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E80DF
Deuteranopia (green-blind)
#3A79D9
Tritanopia (blue-blind)
#58859A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #786edb;
/* rgb */ color: rgb(120, 110, 219);
/* oklch */ color: oklch(60.0% 0.161 284.6);
Tailwind
colors: {
  custom: {
    50: '#a497e7',
    500: '#786edb',
    950: '#000000',
  },
}
SCSS
$custom: #786edb;
$custom-light: #a497e7;
$custom-dark: #000000;
JSON
{
  "hex": "#786edb",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 219
  },
  "hsl": {
    "h": 245.505,
    "s": 60.221,
    "l": 64.51
  },
  "oklch": {
    "l": 0.59986,
    "c": 0.16086,
    "h": 284.6
  },
  "luminance": 0.20259
}

Semantic roles & 50–950 ramp

primary
#786EDB
secondary
#E2E5C0
accent
#C81EB8
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786EDB

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

Preview Lab → · Contrast checker → · Palette generator →

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