#786ECB#786ECB

#786ECB is a mid, vivid blue. Relative luminance 0.195; OKLCH L 59.0% C 0.139 H 286.2°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#786ECB
RGBrgb(120, 110, 203)
HSLhsl(246, 47%, 61%)
HSVhsv(246, 46%, 80%)
CMYKcmyk(40.9%, 45.8%, 0%, 20.4%)
CIE-LABlab(51.22, 26.73, -47.14)
CIE-LCHlch(51.22, 54.19, 299.56°)
OKLaboklab(59.01% 0.0388 -0.1333)
OKLCHoklch(59.01% 0.139 286.2)
XYZxyz(24.0981, 19.4559, 58.9740)
Luminance0.1946 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786ECB #C1CB6E
analogous
#6E93CB #786ECB #A76ECB
triadic
#786ECB #CB786E #6ECB78
tetradic
#786ECB #CB6E93 #C1CB6E #6ECBA7
square
#786ECB #CB6E93 #C1CB6E #6ECBA7
split-complementary
#786ECB #CBA76E #93CB6E
monochromatic
#3C328C #4F42B9 #786ECB #A29BDB #CCC8EB

Accessibility & contrast

On white

4.29
#786ECB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#786ECB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786ECB
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786ECB#FFFFFF#000000##000000
##786ECB1.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B7DCE
Deuteranopia (green-blind)
#4977C9
Tritanopia (blue-blind)
#608193
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #786ecb;
/* rgb */ color: rgb(120, 110, 203);
/* oklch */ color: oklch(59.0% 0.139 286.2);
Tailwind
colors: {
  custom: {
    50: '#a397db',
    500: '#786ecb',
    950: '#000000',
  },
}
SCSS
$custom: #786ecb;
$custom-light: #a397db;
$custom-dark: #000000;
JSON
{
  "hex": "#786ecb",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 203
  },
  "hsl": {
    "h": 246.452,
    "s": 47.208,
    "l": 61.373
  },
  "oklch": {
    "l": 0.59005,
    "c": 0.13882,
    "h": 286.2
  },
  "luminance": 0.19457
}

Semantic roles & 50–950 ramp

primary
#786ECB
secondary
#D8DCB9
accent
#BA2BAB
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #786ECB

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

Preview Lab → · Contrast checker → · Palette generator →

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