#786FB5#786FB5

#786FB5 is a mid, moderate blue. Relative luminance 0.187; OKLCH L 58.0% C 0.106 H 288.5°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#786FB5
RGBrgb(120, 111, 181)
HSLhsl(248, 32%, 57%)
HSVhsv(248, 39%, 71%)
CMYKcmyk(33.7%, 38.7%, 0%, 29%)
CIE-LABlab(50.33, 20.00, -35.89)
CIE-LCHlch(50.33, 41.09, 299.13°)
OKLaboklab(57.96% 0.0337 -0.1005)
OKLCHoklch(57.96% 0.106 288.5)
XYZxyz(21.7684, 18.6976, 46.1692)
Luminance0.1870 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FB5 #ACB56F
analogous
#6F89B5 #786FB5 #9B6FB5
triadic
#786FB5 #B5786F #6FB578
tetradic
#786FB5 #B56F89 #ACB56F #6FB59B
square
#786FB5 #B56F89 #ACB56F #6FB59B
split-complementary
#786FB5 #B59B6F #89B56F
monochromatic
#413A70 #584E98 #786FB5 #9E97CA #C4C0DF

Accessibility & contrast

On white

4.43
#786FB5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#786FB5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FB5
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FB5#FFFFFF#000000##000000
##786FB51.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A79B8
Deuteranopia (green-blind)
#5976B3
Tritanopia (blue-blind)
#697C89
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #786fb5;
/* rgb */ color: rgb(120, 111, 181);
/* oklch */ color: oklch(58.0% 0.106 288.5);
Tailwind
colors: {
  custom: {
    50: '#a198cb',
    500: '#786fb5',
    950: '#000000',
  },
}
SCSS
$custom: #786fb5;
$custom-light: #a198cb;
$custom-dark: #000000;
JSON
{
  "hex": "#786fb5",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 181
  },
  "hsl": {
    "h": 247.714,
    "s": 32.11,
    "l": 57.255
  },
  "oklch": {
    "l": 0.57962,
    "c": 0.10597,
    "h": 288.5
  },
  "luminance": 0.18698
}

Semantic roles & 50–950 ramp

primary
#786FB5
secondary
#CACEB2
accent
#C860BB
background
#FAF9FC
surface
#F3F2F8
border
#CDCCD1
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #786FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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