#786CCE#786CCE

#786CCE is a mid, vivid blue. Relative luminance 0.192; OKLCH L 58.8% C 0.146 H 286.6°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#786CCE
RGBrgb(120, 108, 206)
HSLhsl(247, 50%, 62%)
HSVhsv(247, 48%, 81%)
CMYKcmyk(41.7%, 47.6%, 0%, 19.2%)
CIE-LABlab(50.89, 28.79, -49.37)
CIE-LCHlch(50.89, 57.15, 300.25°)
OKLaboklab(58.81% 0.0417 -0.1398)
OKLCHoklch(58.81% 0.146 286.6)
XYZxyz(24.2457, 19.1735, 60.8039)
Luminance0.1917 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CCE #C2CE6C
analogous
#6C91CE #786CCE #A96CCE
triadic
#786CCE #CE786C #6CCE78
tetradic
#786CCE #CE6C91 #C2CE6C #6CCEA9
square
#786CCE #CE6C91 #C2CE6C #6CCEA9
split-complementary
#786CCE #CEA96C #91CE6C
monochromatic
#3C3090 #4F3FBE #786CCE #A29ADD #CCC8ED

Accessibility & contrast

On white

4.34
#786CCE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#786CCE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CCE
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CCE#FFFFFF#000000##000000
##786CCE1.004.344.834.83
#FFFFFF4.341.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#457CD2
Deuteranopia (green-blind)
#4476CC
Tritanopia (blue-blind)
#5F8093
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #786cce;
/* rgb */ color: rgb(120, 108, 206);
/* oklch */ color: oklch(58.8% 0.146 286.6);
Tailwind
colors: {
  custom: {
    50: '#a396dd',
    500: '#786cce',
    950: '#000000',
  },
}
SCSS
$custom: #786cce;
$custom-light: #a396dd;
$custom-dark: #000000;
JSON
{
  "hex": "#786cce",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 206
  },
  "hsl": {
    "h": 247.347,
    "s": 50,
    "l": 61.569
  },
  "oklch": {
    "l": 0.58813,
    "c": 0.14591,
    "h": 286.6
  },
  "luminance": 0.19174
}

Semantic roles & 50–950 ramp

primary
#786CCE
secondary
#D9DDB9
accent
#BD28AB
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #786CCE

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

Preview Lab → · Contrast checker → · Palette generator →

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