#786FB3#786FB3

#786FB3 is a mid, moderate blue. Relative luminance 0.186; OKLCH L 57.9% C 0.103 H 288.8°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#786FB3
RGBrgb(120, 111, 179)
HSLhsl(248, 31%, 57%)
HSVhsv(248, 38%, 70%)
CMYKcmyk(33%, 38%, 0%, 29.8%)
CIE-LABlab(50.23, 19.46, -34.88)
CIE-LCHlch(50.23, 39.94, 299.16°)
OKLaboklab(57.86% 0.0333 -0.0976)
OKLCHoklch(57.86% 0.103 288.8)
XYZxyz(21.5647, 18.6161, 45.0962)
Luminance0.1862 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FB3 #AAB36F
analogous
#6F88B3 #786FB3 #9A6FB3
triadic
#786FB3 #B3786F #6FB378
tetradic
#786FB3 #B36F88 #AAB36F #6FB39A
square
#786FB3 #B36F88 #AAB36F #6FB39A
split-complementary
#786FB3 #B39A6F #88B36F
monochromatic
#413A6E #584F96 #786FB3 #9E97C8 #C3BFDD

Accessibility & contrast

On white

4.45
#786FB3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#786FB3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FB3
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FB3#FFFFFF#000000##000000
##786FB31.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B79B6
Deuteranopia (green-blind)
#5A76B1
Tritanopia (blue-blind)
#6A7B88
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #786fb3;
/* rgb */ color: rgb(120, 111, 179);
/* oklch */ color: oklch(57.9% 0.103 288.8);
Tailwind
colors: {
  custom: {
    50: '#a198ca',
    500: '#786fb3',
    950: '#000000',
  },
}
SCSS
$custom: #786fb3;
$custom-light: #a198ca;
$custom-dark: #000000;
JSON
{
  "hex": "#786fb3",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 179
  },
  "hsl": {
    "h": 247.941,
    "s": 30.909,
    "l": 56.863
  },
  "oklch": {
    "l": 0.57857,
    "c": 0.10307,
    "h": 288.8
  },
  "luminance": 0.18617
}

Semantic roles & 50–950 ramp

primary
#786FB3
secondary
#C9CDB1
accent
#C761BA
background
#FAF9FC
surface
#F3F2F8
border
#CDCCD1
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #786FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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