#786CC0#786CC0

#786CC0 is a mid, vivid blue. Relative luminance 0.185; OKLCH L 58.0% C 0.126 H 288.4°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#786CC0
RGBrgb(120, 108, 192)
HSLhsl(249, 40%, 59%)
HSVhsv(249, 44%, 75%)
CMYKcmyk(37.5%, 43.7%, 0%, 24.7%)
CIE-LABlab(50.12, 24.83, -42.57)
CIE-LCHlch(50.12, 49.28, 300.26°)
OKLaboklab(57.99% 0.0398 -0.1199)
OKLCHoklch(57.99% 0.126 288.4)
XYZxyz(22.6201, 18.5233, 52.2425)
Luminance0.1852 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CC0 #B4C06C
analogous
#6C8AC0 #786CC0 #A26CC0
triadic
#786CC0 #C0786C #6CC078
tetradic
#786CC0 #C06C8A #B4C06C #6CC0A2
square
#786CC0 #C06C8A #B4C06C #6CC0A2
split-complementary
#786CC0 #C0A26C #8AC06C
monochromatic
#3F357C #5548A7 #786CC0 #9F97D2 #C7C2E5

Accessibility & contrast

On white

4.46
#786CC0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#786CC0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CC0
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CC0#FFFFFF#000000##000000
##786CC01.004.464.704.70
#FFFFFF4.461.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F79C3
Deuteranopia (green-blind)
#4F75BE
Tritanopia (blue-blind)
#657C8D
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #786cc0;
/* rgb */ color: rgb(120, 108, 192);
/* oklch */ color: oklch(58.0% 0.126 288.4);
Tailwind
colors: {
  custom: {
    50: '#a296d3',
    500: '#786cc0',
    950: '#000000',
  },
}
SCSS
$custom: #786cc0;
$custom-light: #a296d3;
$custom-dark: #000000;
JSON
{
  "hex": "#786cc0",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 192
  },
  "hsl": {
    "h": 248.571,
    "s": 40,
    "l": 58.824
  },
  "oklch": {
    "l": 0.57987,
    "c": 0.12636,
    "h": 288.4
  },
  "luminance": 0.18524
}

Semantic roles & 50–950 ramp

primary
#786CC0
secondary
#D0D4B3
accent
#D058BF
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #786CC0

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

Preview Lab → · Contrast checker → · Palette generator →

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