#786EDC#786EDC

#786EDC is a mid, vivid blue. Relative luminance 0.203; OKLCH L 60.1% C 0.162 H 284.5°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#786EDC
RGBrgb(120, 110, 220)
HSLhsl(245, 61%, 65%)
HSVhsv(245, 50%, 86%)
CMYKcmyk(45.5%, 50%, 0%, 13.7%)
CIE-LABlab(52.19, 31.64, -55.24)
CIE-LCHlch(52.19, 63.66, 299.81°)
OKLaboklab(60.05% 0.0407 -0.157)
OKLCHoklch(60.05% 0.162 284.5)
XYZxyz(26.2361, 20.3111, 70.2343)
Luminance0.2031 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786EDC #D2DC6E
analogous
#6E9BDC #786EDC #AF6EDC
triadic
#786EDC #DC786E #6EDC78
tetradic
#786EDC #DC6E9B #D2DC6E #6EDCAF
square
#786EDC #DC6E9B #D2DC6E #6EDCAF
split-complementary
#786EDC #DCAF6E #9BDC6E
monochromatic
#3428A7 #4A3DD0 #786EDC #A69FE8 #D4D1F4

Accessibility & contrast

On white

4.15
#786EDC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#786EDC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786EDC
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786EDC#FFFFFF#000000##000000
##786EDC1.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D80E0
Deuteranopia (green-blind)
#3879DA
Tritanopia (blue-blind)
#57859B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #786edc;
/* rgb */ color: rgb(120, 110, 220);
/* oklch */ color: oklch(60.1% 0.162 284.5);
Tailwind
colors: {
  custom: {
    50: '#a597e7',
    500: '#786edc',
    950: '#000000',
  },
}
SCSS
$custom: #786edc;
$custom-light: #a597e7;
$custom-dark: #000000;
JSON
{
  "hex": "#786edc",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 220
  },
  "hsl": {
    "h": 245.455,
    "s": 61.111,
    "l": 64.706
  },
  "oklch": {
    "l": 0.6005,
    "c": 0.16222,
    "h": 284.5
  },
  "luminance": 0.20312
}

Semantic roles & 50–950 ramp

primary
#786EDC
secondary
#E2E6C0
accent
#C91DB9
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786EDC

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

Preview Lab → · Contrast checker → · Palette generator →

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