#786FB8#786FB8

#786FB8 is a mid, moderate blue. Relative luminance 0.188; OKLCH L 58.1% C 0.110 H 288.1°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#786FB8
RGBrgb(120, 111, 184)
HSLhsl(247, 34%, 58%)
HSVhsv(247, 40%, 72%)
CMYKcmyk(34.8%, 39.7%, 0%, 27.8%)
CIE-LABlab(50.48, 20.82, -37.39)
CIE-LCHlch(50.48, 42.80, 299.11°)
OKLaboklab(58.12% 0.0343 -0.1048)
OKLCHoklch(58.12% 0.11 288.1)
XYZxyz(22.0796, 18.8221, 47.8078)
Luminance0.1882 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FB8 #AFB86F
analogous
#6F8BB8 #786FB8 #9C6FB8
triadic
#786FB8 #B8786F #6FB878
tetradic
#786FB8 #B86F8B #AFB86F #6FB89C
square
#786FB8 #B86F8B #AFB86F #6FB89C
split-complementary
#786FB8 #B89C6F #8BB86F
monochromatic
#403974 #574D9D #786FB8 #9E98CC #C5C1E0

Accessibility & contrast

On white

4.41
#786FB8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#786FB8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FB8
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FB8#FFFFFF#000000##000000
##786FB81.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#587ABB
Deuteranopia (green-blind)
#5876B6
Tritanopia (blue-blind)
#687D8B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #786fb8;
/* rgb */ color: rgb(120, 111, 184);
/* oklch */ color: oklch(58.1% 0.110 288.1);
Tailwind
colors: {
  custom: {
    50: '#a198cd',
    500: '#786fb8',
    950: '#000000',
  },
}
SCSS
$custom: #786fb8;
$custom-light: #a198cd;
$custom-dark: #000000;
JSON
{
  "hex": "#786fb8",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 184
  },
  "hsl": {
    "h": 247.397,
    "s": 33.953,
    "l": 57.843
  },
  "oklch": {
    "l": 0.58122,
    "c": 0.11032,
    "h": 288.1
  },
  "luminance": 0.18823
}

Semantic roles & 50–950 ramp

primary
#786FB8
secondary
#CCD0B3
accent
#CA5EBD
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #786FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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