#786ECA#786ECA

#786ECA is a mid, vivid blue. Relative luminance 0.194; OKLCH L 58.9% C 0.137 H 286.3°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#786ECA
RGBrgb(120, 110, 202)
HSLhsl(247, 46%, 61%)
HSVhsv(247, 46%, 79%)
CMYKcmyk(40.6%, 45.5%, 0%, 20.8%)
CIE-LABlab(51.16, 26.45, -46.65)
CIE-LCHlch(51.16, 53.63, 299.55°)
OKLaboklab(58.95% 0.0387 -0.1319)
OKLCHoklch(58.95% 0.137 286.3)
XYZxyz(23.9793, 19.4083, 58.3484)
Luminance0.1941 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786ECA #C0CA6E
analogous
#6E92CA #786ECA #A66ECA
triadic
#786ECA #CA786E #6ECA78
tetradic
#786ECA #CA6E92 #C0CA6E #6ECAA6
square
#786ECA #CA6E92 #C0CA6E #6ECAA6
split-complementary
#786ECA #CAA66E #92CA6E
monochromatic
#3C338B #5043B8 #786ECA #A29BDA #CBC8EB

Accessibility & contrast

On white

4.30
#786ECA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#786ECA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786ECA
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786ECA#FFFFFF#000000##000000
##786ECA1.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C7CCD
Deuteranopia (green-blind)
#4A77C8
Tritanopia (blue-blind)
#618092
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #786eca;
/* rgb */ color: rgb(120, 110, 202);
/* oklch */ color: oklch(58.9% 0.137 286.3);
Tailwind
colors: {
  custom: {
    50: '#a397da',
    500: '#786eca',
    950: '#000000',
  },
}
SCSS
$custom: #786eca;
$custom-light: #a397da;
$custom-dark: #000000;
JSON
{
  "hex": "#786eca",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 202
  },
  "hsl": {
    "h": 246.522,
    "s": 46.465,
    "l": 61.176
  },
  "oklch": {
    "l": 0.58946,
    "c": 0.13742,
    "h": 286.3
  },
  "luminance": 0.19409
}

Semantic roles & 50–950 ramp

primary
#786ECA
secondary
#D7DBB9
accent
#BA2CAA
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #786ECA

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

Preview Lab → · Contrast checker → · Palette generator →

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