#786ECD#786ECD

#786ECD is a mid, vivid blue. Relative luminance 0.196; OKLCH L 59.1% C 0.142 H 286.0°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#786ECD
RGBrgb(120, 110, 205)
HSLhsl(246, 49%, 62%)
HSVhsv(246, 46%, 80%)
CMYKcmyk(41.5%, 46.3%, 0%, 19.6%)
CIE-LABlab(51.33, 27.31, -48.10)
CIE-LCHlch(51.33, 55.31, 299.58°)
OKLaboklab(59.12% 0.0391 -0.1361)
OKLCHoklch(59.12% 0.142 286)
XYZxyz(24.3380, 19.5518, 60.2373)
Luminance0.1955 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786ECD #C3CD6E
analogous
#6E94CD #786ECD #A86ECD
triadic
#786ECD #CD786E #6ECD78
tetradic
#786ECD #CD6E94 #C3CD6E #6ECDA8
square
#786ECD #CD6E94 #C3CD6E #6ECDA8
split-complementary
#786ECD #CDA86E #94CD6E
monochromatic
#3B318F #4E41BD #786ECD #A29CDD #CDC9EC

Accessibility & contrast

On white

4.28
#786ECD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#786ECD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786ECD
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786ECD#FFFFFF#000000##000000
##786ECD1.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A7DD0
Deuteranopia (green-blind)
#4878CB
Tritanopia (blue-blind)
#5F8194
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #786ecd;
/* rgb */ color: rgb(120, 110, 205);
/* oklch */ color: oklch(59.1% 0.142 286.0);
Tailwind
colors: {
  custom: {
    50: '#a397dd',
    500: '#786ecd',
    950: '#000000',
  },
}
SCSS
$custom: #786ecd;
$custom-light: #a397dd;
$custom-dark: #000000;
JSON
{
  "hex": "#786ecd",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 205
  },
  "hsl": {
    "h": 246.316,
    "s": 48.718,
    "l": 61.765
  },
  "oklch": {
    "l": 0.59124,
    "c": 0.14161,
    "h": 286
  },
  "luminance": 0.19553
}

Semantic roles & 50–950 ramp

primary
#786ECD
secondary
#D9DDBA
accent
#BC29AD
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #786ECD

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

Preview Lab → · Contrast checker → · Palette generator →

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