#786DCD#786DCD

#786DCD is a mid, vivid blue. Relative luminance 0.193; OKLCH L 58.9% C 0.143 H 286.4°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#786DCD
RGBrgb(120, 109, 205)
HSLhsl(247, 49%, 62%)
HSVhsv(247, 47%, 80%)
CMYKcmyk(41.5%, 46.8%, 0%, 19.6%)
CIE-LABlab(51.08, 27.90, -48.50)
CIE-LCHlch(51.08, 55.95, 299.91°)
OKLaboklab(58.94% 0.0403 -0.1373)
OKLCHoklch(58.94% 0.143 286.4)
XYZxyz(24.2307, 19.3372, 60.2015)
Luminance0.1934 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DCD #C2CD6D
analogous
#6D92CD #786DCD #A86DCD
triadic
#786DCD #CD786D #6DCD78
tetradic
#786DCD #CD6D92 #C2CD6D #6DCDA8
square
#786DCD #CD6D92 #C2CD6D #6DCDA8
split-complementary
#786DCD #CDA86D #92CD6D
monochromatic
#3C318F #4F40BC #786DCD #A29BDD #CCC8EC

Accessibility & contrast

On white

4.31
#786DCD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#786DCD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786DCD
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786DCD#FFFFFF#000000##000000
##786DCD1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#487CD0
Deuteranopia (green-blind)
#4677CB
Tritanopia (blue-blind)
#5F8193
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #786dcd;
/* rgb */ color: rgb(120, 109, 205);
/* oklch */ color: oklch(58.9% 0.143 286.4);
Tailwind
colors: {
  custom: {
    50: '#a397dd',
    500: '#786dcd',
    950: '#000000',
  },
}
SCSS
$custom: #786dcd;
$custom-light: #a397dd;
$custom-dark: #000000;
JSON
{
  "hex": "#786dcd",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 205
  },
  "hsl": {
    "h": 246.875,
    "s": 48.98,
    "l": 61.569
  },
  "oklch": {
    "l": 0.58938,
    "c": 0.14307,
    "h": 286.4
  },
  "luminance": 0.19338
}

Semantic roles & 50–950 ramp

primary
#786DCD
secondary
#D9DDB9
accent
#BC29AB
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #786DCD

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

Preview Lab → · Contrast checker → · Palette generator →

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