#786FB2#786FB2

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

Color values

HEX#786FB2
RGBrgb(120, 111, 178)
HSLhsl(248, 30%, 57%)
HSVhsv(248, 38%, 70%)
CMYKcmyk(32.6%, 37.6%, 0%, 30.2%)
CIE-LABlab(50.19, 19.19, -34.38)
CIE-LCHlch(50.19, 39.37, 299.17°)
OKLaboklab(57.8% 0.033 -0.0961)
OKLCHoklch(57.8% 0.102 289)
XYZxyz(21.4639, 18.5758, 44.5655)
Luminance0.1858 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FB2 #A9B26F
analogous
#6F88B2 #786FB2 #9A6FB2
triadic
#786FB2 #B2786F #6FB278
tetradic
#786FB2 #B26F88 #A9B26F #6FB29A
square
#786FB2 #B26F88 #A9B26F #6FB29A
split-complementary
#786FB2 #B29A6F #88B26F
monochromatic
#413A6D #594F94 #786FB2 #9D97C7 #C3BFDD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##786FB2#FFFFFF#000000##000000
##786FB21.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)
#5B79B5
Deuteranopia (green-blind)
#5B76B0
Tritanopia (blue-blind)
#6A7B88
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #786fb2;
/* rgb */ color: rgb(120, 111, 178);
/* oklch */ color: oklch(57.8% 0.102 289.0);
Tailwind
colors: {
  custom: {
    50: '#a198c9',
    500: '#786fb2',
    950: '#000000',
  },
}
SCSS
$custom: #786fb2;
$custom-light: #a198c9;
$custom-dark: #000000;
JSON
{
  "hex": "#786fb2",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 178
  },
  "hsl": {
    "h": 248.06,
    "s": 30.317,
    "l": 56.667
  },
  "oklch": {
    "l": 0.57805,
    "c": 0.10162,
    "h": 289
  },
  "luminance": 0.18576
}

Semantic roles & 50–950 ramp

primary
#786FB2
secondary
#C8CCB1
accent
#C761B9
background
#FAF9FC
surface
#F3F2F8
border
#CDCCD1
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #786FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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