#786FCD#786FCD

#786FCD is a mid, vivid blue. Relative luminance 0.198; OKLCH L 59.3% C 0.140 H 285.7°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#786FCD
RGBrgb(120, 111, 205)
HSLhsl(246, 48%, 62%)
HSVhsv(246, 46%, 80%)
CMYKcmyk(41.5%, 45.9%, 0%, 19.6%)
CIE-LABlab(51.57, 26.71, -47.71)
CIE-LCHlch(51.57, 54.68, 299.24°)
OKLaboklab(59.31% 0.0378 -0.1349)
OKLCHoklch(59.31% 0.14 285.7)
XYZxyz(24.4465, 19.7688, 60.2735)
Luminance0.1977 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FCD #C4CD6F
analogous
#6F95CD #786FCD #A76FCD
triadic
#786FCD #CD786F #6FCD78
tetradic
#786FCD #CD6F95 #C4CD6F #6FCDA7
square
#786FCD #CD6F95 #C4CD6F #6FCDA7
split-complementary
#786FCD #CDA76F #95CD6F
monochromatic
#3B3290 #4D42BD #786FCD #A39CDD #CDCAED

Accessibility & contrast

On white

4.24
#786FCD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#786FCD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FCD
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FCD#FFFFFF#000000##000000
##786FCD1.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B7ED0
Deuteranopia (green-blind)
#4978CB
Tritanopia (blue-blind)
#5F8294
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #786fcd;
/* rgb */ color: rgb(120, 111, 205);
/* oklch */ color: oklch(59.3% 0.140 285.7);
Tailwind
colors: {
  custom: {
    50: '#a398dd',
    500: '#786fcd',
    950: '#000000',
  },
}
SCSS
$custom: #786fcd;
$custom-light: #a398dd;
$custom-dark: #000000;
JSON
{
  "hex": "#786fcd",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 205
  },
  "hsl": {
    "h": 245.745,
    "s": 48.454,
    "l": 61.961
  },
  "oklch": {
    "l": 0.59312,
    "c": 0.14015,
    "h": 285.7
  },
  "luminance": 0.1977
}

Semantic roles & 50–950 ramp

primary
#786FCD
secondary
#DADDBB
accent
#BC2AAE
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #786FCD

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

Preview Lab → · Contrast checker → · Palette generator →

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