#786CDE#786CDE

#786CDE is a mid, vivid blue. Relative luminance 0.200; OKLCH L 59.8% C 0.168 H 284.9°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#786CDE
RGBrgb(120, 108, 222)
HSLhsl(246, 63%, 65%)
HSVhsv(246, 51%, 87%)
CMYKcmyk(45.9%, 51.4%, 0%, 12.9%)
CIE-LABlab(51.83, 33.42, -56.95)
CIE-LCHlch(51.83, 66.03, 300.40°)
OKLaboklab(59.82% 0.0432 -0.1621)
OKLCHoklch(59.82% 0.168 284.9)
XYZxyz(26.2892, 19.9909, 71.5665)
Luminance0.1999 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CDE #D2DE6C
analogous
#6C99DE #786CDE #B16CDE
triadic
#786CDE #DE786C #6CDE78
tetradic
#786CDE #DE6C99 #D2DE6C #6CDEB1
square
#786CDE #DE6C99 #D2DE6C #6CDEB1
split-complementary
#786CDE #DEB16C #99DE6C
monochromatic
#3426AA #4A3AD3 #786CDE #A69EE9 #D4D0F4

Accessibility & contrast

On white

4.20
#786CDE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#786CDE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CDE
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CDE#FFFFFF#000000##000000
##786CDE1.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#367FE2
Deuteranopia (green-blind)
#3278DB
Tritanopia (blue-blind)
#56859B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #786cde;
/* rgb */ color: rgb(120, 108, 222);
/* oklch */ color: oklch(59.8% 0.168 284.9);
Tailwind
colors: {
  custom: {
    50: '#a596e9',
    500: '#786cde',
    950: '#000000',
  },
}
SCSS
$custom: #786cde;
$custom-light: #a596e9;
$custom-dark: #000000;
JSON
{
  "hex": "#786cde",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 222
  },
  "hsl": {
    "h": 246.316,
    "s": 63.333,
    "l": 64.706
  },
  "oklch": {
    "l": 0.59819,
    "c": 0.16772,
    "h": 284.9
  },
  "luminance": 0.19992
}

Semantic roles & 50–950 ramp

primary
#786CDE
secondary
#E2E6BF
accent
#CB1AB9
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786CDE

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

Preview Lab → · Contrast checker → · Palette generator →

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