#786FCF#786FCF

#786FCF is a mid, vivid blue. Relative luminance 0.199; OKLCH L 59.4% C 0.143 H 285.5°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#786FCF
RGBrgb(120, 111, 207)
HSLhsl(246, 50%, 62%)
HSVhsv(246, 46%, 81%)
CMYKcmyk(42%, 46.4%, 0%, 18.8%)
CIE-LABlab(51.69, 27.28, -48.67)
CIE-LCHlch(51.69, 55.80, 299.27°)
OKLaboklab(59.43% 0.0381 -0.1378)
OKLCHoklch(59.43% 0.143 285.5)
XYZxyz(24.6894, 19.8660, 61.5530)
Luminance0.1987 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FCF #C6CF6F
analogous
#6F96CF #786FCF #A86FCF
triadic
#786FCF #CF786F #6FCF78
tetradic
#786FCF #CF6F96 #C6CF6F #6FCFA8
square
#786FCF #CF6F96 #C6CF6F #6FCFA8
split-complementary
#786FCF #CFA86F #96CF6F
monochromatic
#3A3193 #4D41C0 #786FCF #A39DDE #CECBEE

Accessibility & contrast

On white

4.22
#786FCF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#786FCF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FCF
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FCF#FFFFFF#000000##000000
##786FCF1.004.224.974.97
#FFFFFF4.221.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A7ED3
Deuteranopia (green-blind)
#4778CD
Tritanopia (blue-blind)
#5E8395
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #786fcf;
/* rgb */ color: rgb(120, 111, 207);
/* oklch */ color: oklch(59.4% 0.143 285.5);
Tailwind
colors: {
  custom: {
    50: '#a398de',
    500: '#786fcf',
    950: '#000000',
  },
}
SCSS
$custom: #786fcf;
$custom-light: #a398de;
$custom-dark: #000000;
JSON
{
  "hex": "#786fcf",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 207
  },
  "hsl": {
    "h": 245.625,
    "s": 50,
    "l": 62.353
  },
  "oklch": {
    "l": 0.59431,
    "c": 0.14294,
    "h": 285.5
  },
  "luminance": 0.19867
}

Semantic roles & 50–950 ramp

primary
#786FCF
secondary
#DBDEBB
accent
#BD28AF
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #786FCF

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

Preview Lab → · Contrast checker → · Palette generator →

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