#786CCD#786CCD

#786CCD is a mid, vivid blue. Relative luminance 0.191; OKLCH L 58.8% C 0.145 H 286.7°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#786CCD
RGBrgb(120, 108, 205)
HSLhsl(247, 49%, 61%)
HSVhsv(247, 47%, 80%)
CMYKcmyk(41.5%, 47.3%, 0%, 19.6%)
CIE-LABlab(50.83, 28.50, -48.89)
CIE-LCHlch(50.83, 56.59, 300.24°)
OKLaboklab(58.75% 0.0416 -0.1384)
OKLCHoklch(58.75% 0.145 286.7)
XYZxyz(24.1246, 19.1251, 60.1662)
Luminance0.1913 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CCD #C1CD6C
analogous
#6C91CD #786CCD #A96CCD
triadic
#786CCD #CD786C #6CCD78
tetradic
#786CCD #CD6C91 #C1CD6C #6CCDA9
square
#786CCD #CD6C91 #C1CD6C #6CCDA9
split-complementary
#786CCD #CDA96C #91CD6C
monochromatic
#3C308E #4F40BC #786CCD #A29ADD #CCC7EC

Accessibility & contrast

On white

4.35
#786CCD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#786CCD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CCD
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CCD#FFFFFF#000000##000000
##786CCD1.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#467CD1
Deuteranopia (green-blind)
#4576CB
Tritanopia (blue-blind)
#5F8093
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #786ccd;
/* rgb */ color: rgb(120, 108, 205);
/* oklch */ color: oklch(58.8% 0.145 286.7);
Tailwind
colors: {
  custom: {
    50: '#a396dd',
    500: '#786ccd',
    950: '#000000',
  },
}
SCSS
$custom: #786ccd;
$custom-light: #a396dd;
$custom-dark: #000000;
JSON
{
  "hex": "#786ccd",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 205
  },
  "hsl": {
    "h": 247.423,
    "s": 49.239,
    "l": 61.373
  },
  "oklch": {
    "l": 0.58752,
    "c": 0.14454,
    "h": 286.7
  },
  "luminance": 0.19126
}

Semantic roles & 50–950 ramp

primary
#786CCD
secondary
#D8DDB8
accent
#BD29AA
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #786CCD

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

Preview Lab → · Contrast checker → · Palette generator →

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