#786EC2#786EC2

#786EC2 is a mid, vivid blue. Relative luminance 0.190; OKLCH L 58.5% C 0.126 H 287.3°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#786EC2
RGBrgb(120, 110, 194)
HSLhsl(247, 41%, 60%)
HSVhsv(247, 43%, 76%)
CMYKcmyk(38.1%, 43.3%, 0%, 23.9%)
CIE-LABlab(50.73, 24.19, -42.75)
CIE-LCHlch(50.73, 49.12, 299.50°)
OKLaboklab(58.48% 0.0375 -0.1204)
OKLCHoklch(58.48% 0.126 287.3)
XYZxyz(23.0566, 19.0392, 53.4886)
Luminance0.1904 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786EC2 #B8C26E
analogous
#6E8EC2 #786EC2 #A26EC2
triadic
#786EC2 #C2786E #6EC278
tetradic
#786EC2 #C26E8E #B8C26E #6EC2A2
square
#786EC2 #C26E8E #B8C26E #6EC2A2
split-complementary
#786EC2 #C2A26E #8EC26E
monochromatic
#3F3680 #5448AB #786EC2 #A099D4 #C8C4E6

Accessibility & contrast

On white

4.37
#786EC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#786EC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786EC2
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786EC2#FFFFFF#000000##000000
##786EC21.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#517BC5
Deuteranopia (green-blind)
#5077C0
Tritanopia (blue-blind)
#647E8F
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #786ec2;
/* rgb */ color: rgb(120, 110, 194);
/* oklch */ color: oklch(58.5% 0.126 287.3);
Tailwind
colors: {
  custom: {
    50: '#a297d5',
    500: '#786ec2',
    950: '#000000',
  },
}
SCSS
$custom: #786ec2;
$custom-light: #a297d5;
$custom-dark: #000000;
JSON
{
  "hex": "#786ec2",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 194
  },
  "hsl": {
    "h": 247.143,
    "s": 40.777,
    "l": 59.608
  },
  "oklch": {
    "l": 0.58482,
    "c": 0.12615,
    "h": 287.3
  },
  "luminance": 0.1904
}

Semantic roles & 50–950 ramp

primary
#786EC2
secondary
#D2D6B6
accent
#D157C2
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #786EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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