#786CEC#786CEC

#786CEC is a mid, vivid blue. Relative luminance 0.208; OKLCH L 60.7% C 0.186 H 283.6°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#786CEC
RGBrgb(120, 108, 236)
HSLhsl(246, 77%, 67%)
HSVhsv(246, 54%, 93%)
CMYKcmyk(49.2%, 54.2%, 0%, 7.5%)
CIE-LABlab(52.70, 37.54, -63.41)
CIE-LCHlch(52.70, 73.69, 300.62°)
OKLaboklab(60.75% 0.0438 -0.1811)
OKLCHoklch(60.75% 0.186 283.6)
XYZxyz(28.2441, 20.7729, 81.8619)
Luminance0.2077 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CEC #E0EC6C
analogous
#6CA0EC #786CEC #B86CEC
triadic
#786CEC #EC786C #6CEC78
tetradic
#786CEC #EC6CA0 #E0EC6C #6CECB8
square
#786CEC #EC6CA0 #E0EC6C #6CECB8
split-complementary
#786CEC #ECB86C #A0EC6C
monochromatic
#2919C4 #4636E5 #786CEC #AAA2F3 #DCD8FA

Accessibility & contrast

On white

4.07
#786CEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#786CEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CEC
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CEC#FFFFFF#000000##000000
##786CEC1.004.075.155.15
#FFFFFF4.071.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2082F0
Deuteranopia (green-blind)
#147AE9
Tritanopia (blue-blind)
#4D89A2
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #786cec;
/* rgb */ color: rgb(120, 108, 236);
/* oklch */ color: oklch(60.7% 0.186 283.6);
Tailwind
colors: {
  custom: {
    50: '#a696f3',
    500: '#786cec',
    950: '#000000',
  },
}
SCSS
$custom: #786cec;
$custom-light: #a696f3;
$custom-dark: #000000;
JSON
{
  "hex": "#786cec",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 236
  },
  "hsl": {
    "h": 245.625,
    "s": 77.108,
    "l": 67.451
  },
  "oklch": {
    "l": 0.60749,
    "c": 0.18629,
    "h": 283.6
  },
  "luminance": 0.20774
}

Semantic roles & 50–950 ramp

primary
#786CEC
secondary
#EAEEC6
accent
#D90CC6
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786CEC

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

Preview Lab → · Contrast checker → · Palette generator →

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