#786FC9#786FC9

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

Color values

HEX#786FC9
RGBrgb(120, 111, 201)
HSLhsl(246, 45%, 61%)
HSVhsv(246, 45%, 79%)
CMYKcmyk(40.3%, 44.8%, 0%, 21.2%)
CIE-LABlab(51.36, 25.57, -45.77)
CIE-LCHlch(51.36, 52.43, 299.19°)
OKLaboklab(59.08% 0.0373 -0.1293)
OKLCHoklch(59.08% 0.135 286.1)
XYZxyz(23.9698, 19.5781, 57.7630)
Luminance0.1958 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FC9 #C0C96F
analogous
#6F93C9 #786FC9 #A56FC9
triadic
#786FC9 #C9786F #6FC978
tetradic
#786FC9 #C96F93 #C0C96F #6FC9A5
square
#786FC9 #C96F93 #C0C96F #6FC9A5
split-complementary
#786FC9 #C9A56F #93C96F
monochromatic
#3C348A #5044B6 #786FC9 #A29CDA #CBC8EA

Accessibility & contrast

On white

4.27
#786FC9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#786FC9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FC9
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FC9#FFFFFF#000000##000000
##786FC91.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #786fc9;
/* rgb */ color: rgb(120, 111, 201);
/* oklch */ color: oklch(59.1% 0.135 286.1);
Tailwind
colors: {
  custom: {
    50: '#a398da',
    500: '#786fc9',
    950: '#000000',
  },
}
SCSS
$custom: #786fc9;
$custom-light: #a398da;
$custom-dark: #000000;
JSON
{
  "hex": "#786fc9",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 201
  },
  "hsl": {
    "h": 246,
    "s": 45.455,
    "l": 61.176
  },
  "oklch": {
    "l": 0.59076,
    "c": 0.13454,
    "h": 286.1
  },
  "luminance": 0.19579
}

Semantic roles & 50–950 ramp

primary
#786FC9
secondary
#D7DBB9
accent
#B92DAB
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #786FC9

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

Preview Lab → · Contrast checker → · Palette generator →

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