#786FC8#786FC8

#786FC8 is a mid, vivid blue. Relative luminance 0.195; OKLCH L 59.0% C 0.133 H 286.2°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#786FC8
RGBrgb(120, 111, 200)
HSLhsl(246, 45%, 61%)
HSVhsv(246, 45%, 78%)
CMYKcmyk(40%, 44.5%, 0%, 21.6%)
CIE-LABlab(51.30, 25.28, -45.29)
CIE-LCHlch(51.30, 51.87, 299.17°)
OKLaboklab(59.02% 0.0371 -0.1279)
OKLCHoklch(59.02% 0.133 286.2)
XYZxyz(23.8526, 19.5312, 57.1455)
Luminance0.1953 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FC8 #BFC86F
analogous
#6F92C8 #786FC8 #A46FC8
triadic
#786FC8 #C8786F #6FC878
tetradic
#786FC8 #C86F92 #BFC86F #6FC8A4
square
#786FC8 #C86F92 #BFC86F #6FC8A4
split-complementary
#786FC8 #C8A46F #92C86F
monochromatic
#3D3488 #5045B5 #786FC8 #A29BD9 #CBC8EA

Accessibility & contrast

On white

4.28
#786FC8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#786FC8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FC8
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FC8#FFFFFF#000000##000000
##786FC81.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F7DCB
Deuteranopia (green-blind)
#4D78C6
Tritanopia (blue-blind)
#618192
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #786fc8;
/* rgb */ color: rgb(120, 111, 200);
/* oklch */ color: oklch(59.0% 0.133 286.2);
Tailwind
colors: {
  custom: {
    50: '#a298d9',
    500: '#786fc8',
    950: '#000000',
  },
}
SCSS
$custom: #786fc8;
$custom-light: #a298d9;
$custom-dark: #000000;
JSON
{
  "hex": "#786fc8",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 200
  },
  "hsl": {
    "h": 246.067,
    "s": 44.724,
    "l": 60.98
  },
  "oklch": {
    "l": 0.59018,
    "c": 0.13314,
    "h": 286.2
  },
  "luminance": 0.19532
}

Semantic roles & 50–950 ramp

primary
#786FC8
secondary
#D7DAB9
accent
#B82EAA
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #786FC8

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

Preview Lab → · Contrast checker → · Palette generator →

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