#786CDC#786CDC

#786CDC is a mid, vivid blue. Relative luminance 0.199; OKLCH L 59.7% C 0.165 H 285.1°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#786CDC
RGBrgb(120, 108, 220)
HSLhsl(246, 62%, 64%)
HSVhsv(246, 51%, 86%)
CMYKcmyk(45.5%, 50.9%, 0%, 13.7%)
CIE-LABlab(51.71, 32.83, -56.01)
CIE-LCHlch(51.71, 64.93, 300.38°)
OKLaboklab(59.69% 0.043 -0.1593)
OKLCHoklch(59.69% 0.165 285.1)
XYZxyz(26.0228, 19.8844, 70.1632)
Luminance0.1989 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CDC #D0DC6C
analogous
#6C98DC #786CDC #B06CDC
triadic
#786CDC #DC786C #6CDC78
tetradic
#786CDC #DC6C98 #D0DC6C #6CDCB0
square
#786CDC #DC6C98 #D0DC6C #6CDCB0
split-complementary
#786CDC #DCB06C #98DC6C
monochromatic
#3528A6 #4B3BD0 #786CDC #A59DE8 #D3CFF4

Accessibility & contrast

On white

4.22
#786CDC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#786CDC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CDC
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CDC#FFFFFF#000000##000000
##786CDC1.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#387EE0
Deuteranopia (green-blind)
#3478DA
Tritanopia (blue-blind)
#57849A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #786cdc;
/* rgb */ color: rgb(120, 108, 220);
/* oklch */ color: oklch(59.7% 0.165 285.1);
Tailwind
colors: {
  custom: {
    50: '#a596e7',
    500: '#786cdc',
    950: '#000000',
  },
}
SCSS
$custom: #786cdc;
$custom-light: #a596e7;
$custom-dark: #000000;
JSON
{
  "hex": "#786cdc",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 220
  },
  "hsl": {
    "h": 246.429,
    "s": 61.538,
    "l": 64.314
  },
  "oklch": {
    "l": 0.5969,
    "c": 0.16503,
    "h": 285.1
  },
  "luminance": 0.19886
}

Semantic roles & 50–950 ramp

primary
#786CDC
secondary
#E1E5BE
accent
#C91CB7
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786CDC

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

Preview Lab → · Contrast checker → · Palette generator →

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