#786DC8#786DC8

#786DC8 is a mid, vivid blue. Relative luminance 0.191; OKLCH L 58.6% C 0.136 H 287.0°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#786DC8
RGBrgb(120, 109, 200)
HSLhsl(247, 45%, 61%)
HSVhsv(247, 46%, 78%)
CMYKcmyk(40%, 45.5%, 0%, 21.6%)
CIE-LABlab(50.80, 26.48, -46.08)
CIE-LCHlch(50.80, 53.15, 299.88°)
OKLaboklab(58.64% 0.0397 -0.1302)
OKLCHoklch(58.64% 0.136 287)
XYZxyz(23.6368, 19.0997, 57.0736)
Luminance0.1910 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DC8 #BDC86D
analogous
#6D8FC8 #786DC8 #A56DC8
triadic
#786DC8 #C8786D #6DC878
tetradic
#786DC8 #C86D8F #BDC86D #6DC8A5
square
#786DC8 #C86D8F #BDC86D #6DC8A5
split-complementary
#786DC8 #C8A56D #8FC86D
monochromatic
#3D3388 #5144B4 #786DC8 #A199D9 #CAC6E9

Accessibility & contrast

On white

4.36
#786DC8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#786DC8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786DC8
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786DC8#FFFFFF#000000##000000
##786DC81.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B7BCB
Deuteranopia (green-blind)
#4A77C6
Tritanopia (blue-blind)
#617F91
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #786dc8;
/* rgb */ color: rgb(120, 109, 200);
/* oklch */ color: oklch(58.6% 0.136 287.0);
Tailwind
colors: {
  custom: {
    50: '#a397d9',
    500: '#786dc8',
    950: '#000000',
  },
}
SCSS
$custom: #786dc8;
$custom-light: #a397d9;
$custom-dark: #000000;
JSON
{
  "hex": "#786dc8",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 200
  },
  "hsl": {
    "h": 247.253,
    "s": 45.274,
    "l": 60.588
  },
  "oklch": {
    "l": 0.5864,
    "c": 0.1361,
    "h": 287
  },
  "luminance": 0.191
}

Semantic roles & 50–950 ramp

primary
#786DC8
secondary
#D6DAB7
accent
#B82DA8
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #786DC8

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

Preview Lab → · Contrast checker → · Palette generator →

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