#786CCF#786CCF

#786CCF is a mid, vivid blue. Relative luminance 0.192; OKLCH L 58.9% C 0.147 H 286.5°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#786CCF
RGBrgb(120, 108, 207)
HSLhsl(247, 51%, 62%)
HSVhsv(247, 48%, 81%)
CMYKcmyk(42%, 47.8%, 0%, 18.8%)
CIE-LABlab(50.95, 29.07, -49.85)
CIE-LCHlch(50.95, 57.71, 300.25°)
OKLaboklab(58.87% 0.0418 -0.1412)
OKLCHoklch(58.87% 0.147 286.5)
XYZxyz(24.3676, 19.2223, 61.4457)
Luminance0.1922 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CCF #C3CF6C
analogous
#6C92CF #786CCF #AA6CCF
triadic
#786CCF #CF786C #6CCF78
tetradic
#786CCF #CF6C92 #C3CF6C #6CCFAA
square
#786CCF #CF6C92 #C3CF6C #6CCFAA
split-complementary
#786CCF #CFAA6C #92CF6C
monochromatic
#3B2F91 #4E3EBF #786CCF #A29ADE #CDC8ED

Accessibility & contrast

On white

4.33
#786CCF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#786CCF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CCF
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CCF#FFFFFF#000000##000000
##786CCF1.004.334.844.84
#FFFFFF4.331.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#447CD3
Deuteranopia (green-blind)
#4377CD
Tritanopia (blue-blind)
#5E8094
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #786ccf;
/* rgb */ color: rgb(120, 108, 207);
/* oklch */ color: oklch(58.9% 0.147 286.5);
Tailwind
colors: {
  custom: {
    50: '#a396de',
    500: '#786ccf',
    950: '#000000',
  },
}
SCSS
$custom: #786ccf;
$custom-light: #a396de;
$custom-dark: #000000;
JSON
{
  "hex": "#786ccf",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 207
  },
  "hsl": {
    "h": 247.273,
    "s": 50.769,
    "l": 61.765
  },
  "oklch": {
    "l": 0.58874,
    "c": 0.14729,
    "h": 286.5
  },
  "luminance": 0.19223
}

Semantic roles & 50–950 ramp

primary
#786CCF
secondary
#D9DEB9
accent
#BE27AC
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #786CCF

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

Preview Lab → · Contrast checker → · Palette generator →

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