#786CDB#786CDB

#786CDB is a mid, vivid blue. Relative luminance 0.198; OKLCH L 59.6% C 0.164 H 285.2°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#786CDB
RGBrgb(120, 108, 219)
HSLhsl(246, 61%, 64%)
HSVhsv(246, 51%, 86%)
CMYKcmyk(45.2%, 50.7%, 0%, 14.1%)
CIE-LABlab(51.65, 32.54, -55.54)
CIE-LCHlch(51.65, 64.37, 300.36°)
OKLaboklab(59.62% 0.0429 -0.1579)
OKLCHoklch(59.62% 0.164 285.2)
XYZxyz(25.8907, 19.8315, 69.4678)
Luminance0.1983 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CDB #CFDB6C
analogous
#6C98DB #786CDB #AF6CDB
triadic
#786CDB #DB786C #6CDB78
tetradic
#786CDB #DB6C98 #CFDB6C #6CDBAF
square
#786CDB #DB6C98 #CFDB6C #6CDBAF
split-complementary
#786CDB #DBAF6C #98DB6C
monochromatic
#3628A4 #4B3BCF #786CDB #A59DE7 #D2CEF3

Accessibility & contrast

On white

4.23
#786CDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#786CDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CDB
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CDB#FFFFFF#000000##000000
##786CDB1.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#397EDF
Deuteranopia (green-blind)
#3678D9
Tritanopia (blue-blind)
#588499
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #786cdb;
/* rgb */ color: rgb(120, 108, 219);
/* oklch */ color: oklch(59.6% 0.164 285.2);
Tailwind
colors: {
  custom: {
    50: '#a596e7',
    500: '#786cdb',
    950: '#000000',
  },
}
SCSS
$custom: #786cdb;
$custom-light: #a596e7;
$custom-dark: #000000;
JSON
{
  "hex": "#786cdb",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 219
  },
  "hsl": {
    "h": 246.486,
    "s": 60.656,
    "l": 64.118
  },
  "oklch": {
    "l": 0.59625,
    "c": 0.16367,
    "h": 285.2
  },
  "luminance": 0.19833
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #786CDB

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

Preview Lab → · Contrast checker → · Palette generator →

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