#786AEC#786AEC

#786AEC is a mid, vivid blue. Relative luminance 0.204; OKLCH L 60.4% C 0.189 H 284.1°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#786AEC
RGBrgb(120, 106, 236)
HSLhsl(246, 77%, 67%)
HSVhsv(246, 55%, 93%)
CMYKcmyk(49.2%, 55.1%, 0%, 7.5%)
CIE-LABlab(52.24, 38.71, -64.16)
CIE-LCHlch(52.24, 74.93, 301.10°)
OKLaboklab(60.41% 0.046 -0.1833)
OKLCHoklch(60.41% 0.189 284.1)
XYZxyz(28.0356, 20.3559, 81.7924)
Luminance0.2036 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786AEC #DEEC6A
analogous
#6A9DEC #786AEC #B96AEC
triadic
#786AEC #EC786A #6AEC78
tetradic
#786AEC #EC6A9D #DEEC6A #6AECB9
square
#786AEC #EC6A9D #DEEC6A #6AECB9
split-complementary
#786AEC #ECB96A #9DEC6A
monochromatic
#2B19C3 #4734E5 #786AEC #A9A0F3 #DAD7FA

Accessibility & contrast

On white

4.14
#786AEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#786AEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786AEC
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786AEC#FFFFFF#000000##000000
##786AEC1.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#1781F0
Deuteranopia (green-blind)
#0678E9
Tritanopia (blue-blind)
#4D87A1
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #786aec;
/* rgb */ color: rgb(120, 106, 236);
/* oklch */ color: oklch(60.4% 0.189 284.1);
Tailwind
colors: {
  custom: {
    50: '#a795f3',
    500: '#786aec',
    950: '#000000',
  },
}
SCSS
$custom: #786aec;
$custom-light: #a795f3;
$custom-dark: #000000;
JSON
{
  "hex": "#786aec",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 236
  },
  "hsl": {
    "h": 246.462,
    "s": 77.381,
    "l": 67.059
  },
  "oklch": {
    "l": 0.60406,
    "c": 0.18895,
    "h": 284.1
  },
  "luminance": 0.20357
}

Semantic roles & 50–950 ramp

primary
#786AEC
secondary
#E9EEC4
accent
#DA0CC3
background
#FAF9FE
surface
#F4F1FD
border
#CECBD5
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786AEC

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

Preview Lab → · Contrast checker → · Palette generator →

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