#786FCA#786FCA

#786FCA is a mid, vivid blue. Relative luminance 0.196; OKLCH L 59.1% C 0.136 H 286.0°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#786FCA
RGBrgb(120, 111, 202)
HSLhsl(246, 46%, 61%)
HSVhsv(246, 45%, 79%)
CMYKcmyk(40.6%, 45%, 0%, 20.8%)
CIE-LABlab(51.41, 25.85, -46.26)
CIE-LCHlch(51.41, 52.99, 299.20°)
OKLaboklab(59.14% 0.0374 -0.1307)
OKLCHoklch(59.14% 0.136 286)
XYZxyz(24.0878, 19.6253, 58.3846)
Luminance0.1963 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FCA #C1CA6F
analogous
#6F94CA #786FCA #A66FCA
triadic
#786FCA #CA786F #6FCA78
tetradic
#786FCA #CA6F94 #C1CA6F #6FCAA6
square
#786FCA #CA6F94 #C1CA6F #6FCAA6
split-complementary
#786FCA #CAA66F #94CA6F
monochromatic
#3C338B #4F44B8 #786FCA #A29CDA #CCC8EB

Accessibility & contrast

On white

4.26
#786FCA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#786FCA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FCA
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FCA#FFFFFF#000000##000000
##786FCA1.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D7DCD
Deuteranopia (green-blind)
#4B78C8
Tritanopia (blue-blind)
#608193
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #786fca;
/* rgb */ color: rgb(120, 111, 202);
/* oklch */ color: oklch(59.1% 0.136 286.0);
Tailwind
colors: {
  custom: {
    50: '#a398da',
    500: '#786fca',
    950: '#000000',
  },
}
SCSS
$custom: #786fca;
$custom-light: #a398da;
$custom-dark: #000000;
JSON
{
  "hex": "#786fca",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 202
  },
  "hsl": {
    "h": 245.934,
    "s": 46.193,
    "l": 61.373
  },
  "oklch": {
    "l": 0.59135,
    "c": 0.13595,
    "h": 286
  },
  "luminance": 0.19626
}

Semantic roles & 50–950 ramp

primary
#786FCA
secondary
#D8DBB9
accent
#B92CAB
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #786FCA

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

Preview Lab → · Contrast checker → · Palette generator →

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