#786FCC#786FCC

#786FCC is a mid, vivid blue. Relative luminance 0.197; OKLCH L 59.3% C 0.139 H 285.8°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#786FCC
RGBrgb(120, 111, 204)
HSLhsl(246, 48%, 62%)
HSVhsv(246, 46%, 80%)
CMYKcmyk(41.2%, 45.6%, 0%, 20%)
CIE-LABlab(51.52, 26.42, -47.23)
CIE-LCHlch(51.52, 54.11, 299.22°)
OKLaboklab(59.25% 0.0377 -0.1335)
OKLCHoklch(59.25% 0.139 285.8)
XYZxyz(24.3262, 19.7207, 59.6398)
Luminance0.1972 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FCC #C3CC6F
analogous
#6F95CC #786FCC #A66FCC
triadic
#786FCC #CC786F #6FCC78
tetradic
#786FCC #CC6F95 #C3CC6F #6FCCA6
square
#786FCC #CC6F95 #C3CC6F #6FCCA6
split-complementary
#786FCC #CCA66F #95CC6F
monochromatic
#3B328E #4E42BB #786FCC #A29CDC #CDC9EC

Accessibility & contrast

On white

4.25
#786FCC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#786FCC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FCC
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FCC#FFFFFF#000000##000000
##786FCC1.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C7DCF
Deuteranopia (green-blind)
#4A78CA
Tritanopia (blue-blind)
#5F8294
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #786fcc;
/* rgb */ color: rgb(120, 111, 204);
/* oklch */ color: oklch(59.3% 0.139 285.8);
Tailwind
colors: {
  custom: {
    50: '#a398dc',
    500: '#786fcc',
    950: '#000000',
  },
}
SCSS
$custom: #786fcc;
$custom-light: #a398dc;
$custom-dark: #000000;
JSON
{
  "hex": "#786fcc",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 204
  },
  "hsl": {
    "h": 245.806,
    "s": 47.692,
    "l": 61.765
  },
  "oklch": {
    "l": 0.59252,
    "c": 0.13874,
    "h": 285.8
  },
  "luminance": 0.19722
}

Semantic roles & 50–950 ramp

primary
#786FCC
secondary
#D9DDBA
accent
#BB2BAD
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #786FCC

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

Preview Lab → · Contrast checker → · Palette generator →

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