#786FC3#786FC3

#786FC3 is a mid, vivid blue. Relative luminance 0.193; OKLCH L 58.7% C 0.126 H 286.7°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#786FC3
RGBrgb(120, 111, 195)
HSLhsl(246, 41%, 60%)
HSVhsv(246, 43%, 76%)
CMYKcmyk(38.5%, 43.1%, 0%, 23.5%)
CIE-LABlab(51.04, 23.87, -42.84)
CIE-LCHlch(51.04, 49.04, 299.13°)
OKLaboklab(58.73% 0.0363 -0.1207)
OKLCHoklch(58.73% 0.126 286.7)
XYZxyz(23.2778, 19.3013, 54.1182)
Luminance0.1930 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FC3 #BAC36F
analogous
#6F90C3 #786FC3 #A26FC3
triadic
#786FC3 #C3786F #6FC378
tetradic
#786FC3 #C36F90 #BAC36F #6FC3A2
square
#786FC3 #C36F90 #BAC36F #6FC3A2
split-complementary
#786FC3 #C3A26F #90C36F
monochromatic
#3E3682 #5348AD #786FC3 #A19AD5 #C9C5E7

Accessibility & contrast

On white

4.32
#786FC3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#786FC3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FC3
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FC3#FFFFFF#000000##000000
##786FC31.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#527CC6
Deuteranopia (green-blind)
#5177C1
Tritanopia (blue-blind)
#637F8F
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #786fc3;
/* rgb */ color: rgb(120, 111, 195);
/* oklch */ color: oklch(58.7% 0.126 286.7);
Tailwind
colors: {
  custom: {
    50: '#a298d5',
    500: '#786fc3',
    950: '#000000',
  },
}
SCSS
$custom: #786fc3;
$custom-light: #a298d5;
$custom-dark: #000000;
JSON
{
  "hex": "#786fc3",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 195
  },
  "hsl": {
    "h": 246.429,
    "s": 41.176,
    "l": 60
  },
  "oklch": {
    "l": 0.58731,
    "c": 0.12607,
    "h": 286.7
  },
  "luminance": 0.19302
}

Semantic roles & 50–950 ramp

primary
#786FC3
secondary
#D4D7B7
accent
#D157C4
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #786FC3

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

Preview Lab → · Contrast checker → · Palette generator →

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