#786FCB#786FCB

#786FCB is a mid, vivid blue. Relative luminance 0.197; OKLCH L 59.2% C 0.137 H 285.9°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#786FCB
RGBrgb(120, 111, 203)
HSLhsl(246, 47%, 62%)
HSVhsv(246, 45%, 80%)
CMYKcmyk(40.9%, 45.3%, 0%, 20.4%)
CIE-LABlab(51.47, 26.13, -46.74)
CIE-LCHlch(51.47, 53.55, 299.21°)
OKLaboklab(59.19% 0.0375 -0.1321)
OKLCHoklch(59.19% 0.137 285.9)
XYZxyz(24.2066, 19.6729, 59.0101)
Luminance0.1967 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FCB #C2CB6F
analogous
#6F94CB #786FCB #A66FCB
triadic
#786FCB #CB786F #6FCB78
tetradic
#786FCB #CB6F94 #C2CB6F #6FCBA6
square
#786FCB #CB6F94 #C2CB6F #6FCBA6
split-complementary
#786FCB #CBA66F #94CB6F
monochromatic
#3C338D #4F43BA #786FCB #A29CDB #CCC9EB

Accessibility & contrast

On white

4.26
#786FCB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#786FCB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FCB
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FCB#FFFFFF#000000##000000
##786FCB1.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D7DCE
Deuteranopia (green-blind)
#4B78C9
Tritanopia (blue-blind)
#608293
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #786fcb;
/* rgb */ color: rgb(120, 111, 203);
/* oklch */ color: oklch(59.2% 0.137 285.9);
Tailwind
colors: {
  custom: {
    50: '#a398db',
    500: '#786fcb',
    950: '#000000',
  },
}
SCSS
$custom: #786fcb;
$custom-light: #a398db;
$custom-dark: #000000;
JSON
{
  "hex": "#786fcb",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 203
  },
  "hsl": {
    "h": 245.87,
    "s": 46.939,
    "l": 61.569
  },
  "oklch": {
    "l": 0.59193,
    "c": 0.13735,
    "h": 285.9
  },
  "luminance": 0.19674
}

Semantic roles & 50–950 ramp

primary
#786FCB
secondary
#D9DCBA
accent
#BA2BAC
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #786FCB

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

Preview Lab → · Contrast checker → · Palette generator →

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