#786DC6#786DC6

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

Color values

HEX#786DC6
RGBrgb(120, 109, 198)
HSLhsl(247, 44%, 60%)
HSVhsv(247, 45%, 78%)
CMYKcmyk(39.4%, 44.9%, 0%, 22.4%)
CIE-LABlab(50.70, 25.91, -45.11)
CIE-LCHlch(50.70, 52.02, 299.88°)
OKLaboklab(58.52% 0.0394 -0.1273)
OKLCHoklch(58.52% 0.133 287.2)
XYZxyz(23.4046, 19.0068, 55.8507)
Luminance0.1901 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DC6 #BBC66D
analogous
#6D8EC6 #786DC6 #A56DC6
triadic
#786DC6 #C6786D #6DC678
tetradic
#786DC6 #C66D8E #BBC66D #6DC6A5
square
#786DC6 #C66D8E #BBC66D #6DC6A5
split-complementary
#786DC6 #C6A56D #8EC66D
monochromatic
#3E3485 #5245B1 #786DC6 #A199D7 #C9C5E8

Accessibility & contrast

On white

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

On black

4.80
#786DC6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786DC6
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786DC6#FFFFFF#000000##000000
##786DC61.004.374.804.80
#FFFFFF4.371.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D7BC9
Deuteranopia (green-blind)
#4C76C4
Tritanopia (blue-blind)
#627F90
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #786dc6;
/* rgb */ color: rgb(120, 109, 198);
/* oklch */ color: oklch(58.5% 0.133 287.2);
Tailwind
colors: {
  custom: {
    50: '#a297d8',
    500: '#786dc6',
    950: '#000000',
  },
}
SCSS
$custom: #786dc6;
$custom-light: #a297d8;
$custom-dark: #000000;
JSON
{
  "hex": "#786dc6",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 198
  },
  "hsl": {
    "h": 247.416,
    "s": 43.842,
    "l": 60.196
  },
  "oklch": {
    "l": 0.58523,
    "c": 0.1333,
    "h": 287.2
  },
  "luminance": 0.19008
}

Semantic roles & 50–950 ramp

primary
#786DC6
secondary
#D4D8B6
accent
#B72FA6
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #786DC6

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

Preview Lab → · Contrast checker → · Palette generator →

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