#786FB1#786FB1

#786FB1 is a mid, moderate blue. Relative luminance 0.185; OKLCH L 57.8% C 0.100 H 289.1°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#786FB1
RGBrgb(120, 111, 177)
HSLhsl(248, 30%, 56%)
HSVhsv(248, 37%, 69%)
CMYKcmyk(32.2%, 37.3%, 0%, 30.6%)
CIE-LABlab(50.14, 18.92, -33.87)
CIE-LCHlch(50.14, 38.80, 299.19°)
OKLaboklab(57.75% 0.0328 -0.0946)
OKLCHoklch(57.75% 0.1 289.1)
XYZxyz(21.3639, 18.5358, 44.0386)
Luminance0.1854 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FB1 #A8B16F
analogous
#6F87B1 #786FB1 #996FB1
triadic
#786FB1 #B1786F #6FB178
tetradic
#786FB1 #B16F87 #A8B16F #6FB199
square
#786FB1 #B16F87 #A8B16F #6FB199
split-complementary
#786FB1 #B1996F #87B16F
monochromatic
#413A6B #595093 #786FB1 #9D97C7 #C2BEDC

Accessibility & contrast

On white

4.46
#786FB1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#786FB1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FB1
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FB1#FFFFFF#000000##000000
##786FB11.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C79B4
Deuteranopia (green-blind)
#5B76AF
Tritanopia (blue-blind)
#6A7B88
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #786fb1;
/* rgb */ color: rgb(120, 111, 177);
/* oklch */ color: oklch(57.8% 0.100 289.1);
Tailwind
colors: {
  custom: {
    50: '#a198c8',
    500: '#786fb1',
    950: '#000000',
  },
}
SCSS
$custom: #786fb1;
$custom-light: #a198c8;
$custom-dark: #000000;
JSON
{
  "hex": "#786fb1",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 177
  },
  "hsl": {
    "h": 248.182,
    "s": 29.73,
    "l": 56.471
  },
  "oklch": {
    "l": 0.57753,
    "c": 0.10017,
    "h": 289.1
  },
  "luminance": 0.18536
}

Semantic roles & 50–950 ramp

primary
#786FB1
secondary
#C8CBB0
accent
#C662B8
background
#FAF9FC
surface
#F3F2F8
border
#CDCCD1
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #786FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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