#786FC2#786FC2

#786FC2 is a mid, vivid blue. Relative luminance 0.193; OKLCH L 58.7% C 0.125 H 286.9°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#786FC2
RGBrgb(120, 111, 194)
HSLhsl(247, 40%, 60%)
HSVhsv(247, 43%, 76%)
CMYKcmyk(38.1%, 42.8%, 0%, 23.9%)
CIE-LABlab(50.99, 23.59, -42.35)
CIE-LCHlch(50.99, 48.48, 299.12°)
OKLaboklab(58.67% 0.0362 -0.1193)
OKLCHoklch(58.67% 0.125 286.9)
XYZxyz(23.1651, 19.2563, 53.5248)
Luminance0.1926 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FC2 #B9C26F
analogous
#6F90C2 #786FC2 #A26FC2
triadic
#786FC2 #C2786F #6FC278
tetradic
#786FC2 #C26F90 #B9C26F #6FC2A2
square
#786FC2 #C26F90 #B9C26F #6FC2A2
split-complementary
#786FC2 #C2A26F #90C26F
monochromatic
#3E3680 #5349AB #786FC2 #A09AD4 #C9C5E6

Accessibility & contrast

On white

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

On black

4.85
#786FC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FC2
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FC2#FFFFFF#000000##000000
##786FC21.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#527CC5
Deuteranopia (green-blind)
#5177C0
Tritanopia (blue-blind)
#647F8F
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #786fc2;
/* rgb */ color: rgb(120, 111, 194);
/* oklch */ color: oklch(58.7% 0.125 286.9);
Tailwind
colors: {
  custom: {
    50: '#a298d5',
    500: '#786fc2',
    950: '#000000',
  },
}
SCSS
$custom: #786fc2;
$custom-light: #a298d5;
$custom-dark: #000000;
JSON
{
  "hex": "#786fc2",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 194
  },
  "hsl": {
    "h": 246.506,
    "s": 40.488,
    "l": 59.804
  },
  "oklch": {
    "l": 0.58674,
    "c": 0.12465,
    "h": 286.9
  },
  "luminance": 0.19257
}

Semantic roles & 50–950 ramp

primary
#786FC2
secondary
#D3D6B6
accent
#D057C3
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #786FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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