#786CDD#786CDD

#786CDD is a mid, vivid blue. Relative luminance 0.199; OKLCH L 59.8% C 0.166 H 285.0°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#786CDD
RGBrgb(120, 108, 221)
HSLhsl(246, 62%, 65%)
HSVhsv(246, 51%, 87%)
CMYKcmyk(45.7%, 51.1%, 0%, 13.3%)
CIE-LABlab(51.77, 33.12, -56.48)
CIE-LCHlch(51.77, 65.48, 300.39°)
OKLaboklab(59.75% 0.0431 -0.1607)
OKLCHoklch(59.75% 0.166 285)
XYZxyz(26.1556, 19.9375, 70.8628)
Luminance0.1994 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CDD #D1DD6C
analogous
#6C98DD #786CDD #B16CDD
triadic
#786CDD #DD786C #6CDD78
tetradic
#786CDD #DD6C98 #D1DD6C #6CDDB1
square
#786CDD #DD6C98 #D1DD6C #6CDDB1
split-complementary
#786CDD #DDB16C #98DD6C
monochromatic
#3527A8 #4A3AD2 #786CDD #A69EE8 #D3CFF4

Accessibility & contrast

On white

4.21
#786CDD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#786CDD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CDD
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CDD#FFFFFF#000000##000000
##786CDD1.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#377FE1
Deuteranopia (green-blind)
#3378DB
Tritanopia (blue-blind)
#57849A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #786cdd;
/* rgb */ color: rgb(120, 108, 221);
/* oklch */ color: oklch(59.8% 0.166 285.0);
Tailwind
colors: {
  custom: {
    50: '#a596e8',
    500: '#786cdd',
    950: '#000000',
  },
}
SCSS
$custom: #786cdd;
$custom-light: #a596e8;
$custom-dark: #000000;
JSON
{
  "hex": "#786cdd",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 221
  },
  "hsl": {
    "h": 246.372,
    "s": 62.431,
    "l": 64.51
  },
  "oklch": {
    "l": 0.59754,
    "c": 0.16637,
    "h": 285
  },
  "luminance": 0.19939
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #786CDD

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

Preview Lab → · Contrast checker → · Palette generator →

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