#786BEC#786BEC

#786BEC is a mid, vivid blue. Relative luminance 0.206; OKLCH L 60.6% C 0.188 H 283.8°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#786BEC
RGBrgb(120, 107, 236)
HSLhsl(246, 77%, 67%)
HSVhsv(246, 55%, 93%)
CMYKcmyk(49.2%, 54.7%, 0%, 7.5%)
CIE-LABlab(52.47, 38.12, -63.79)
CIE-LCHlch(52.47, 74.31, 300.87°)
OKLaboklab(60.58% 0.0449 -0.1822)
OKLCHoklch(60.58% 0.188 283.8)
XYZxyz(28.1392, 20.5632, 81.8270)
Luminance0.2056 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BEC #DFEC6B
analogous
#6B9EEC #786BEC #B96BEC
triadic
#786BEC #EC786B #6BEC78
tetradic
#786BEC #EC6B9E #DFEC6B #6BECB9
square
#786BEC #EC6B9E #DFEC6B #6BECB9
split-complementary
#786BEC #ECB96B #9EEC6B
monochromatic
#2A19C4 #4735E5 #786BEC #A9A1F3 #DBD7FA

Accessibility & contrast

On white

4.11
#786BEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#786BEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786BEC
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BEC#FFFFFF#000000##000000
##786BEC1.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#1C81F0
Deuteranopia (green-blind)
#0E79E9
Tritanopia (blue-blind)
#4D88A1
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #786bec;
/* rgb */ color: rgb(120, 107, 236);
/* oklch */ color: oklch(60.6% 0.188 283.8);
Tailwind
colors: {
  custom: {
    50: '#a795f3',
    500: '#786bec',
    950: '#000000',
  },
}
SCSS
$custom: #786bec;
$custom-light: #a795f3;
$custom-dark: #000000;
JSON
{
  "hex": "#786bec",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 236
  },
  "hsl": {
    "h": 246.047,
    "s": 77.246,
    "l": 67.255
  },
  "oklch": {
    "l": 0.60577,
    "c": 0.18762,
    "h": 283.8
  },
  "luminance": 0.20565
}

Semantic roles & 50–950 ramp

primary
#786BEC
secondary
#EAEEC5
accent
#D90CC5
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786BEC

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

Preview Lab → · Contrast checker → · Palette generator →

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