#786FBF#786FBF

#786FBF is a mid, vivid blue. Relative luminance 0.191; OKLCH L 58.5% C 0.120 H 287.2°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#786FBF
RGBrgb(120, 111, 191)
HSLhsl(247, 38%, 59%)
HSVhsv(247, 42%, 75%)
CMYKcmyk(37.2%, 41.9%, 0%, 25.1%)
CIE-LABlab(50.83, 22.75, -40.87)
CIE-LCHlch(50.83, 46.78, 299.10°)
OKLaboklab(58.51% 0.0356 -0.115)
OKLCHoklch(58.51% 0.12 287.2)
XYZxyz(22.8316, 19.1228, 51.7682)
Luminance0.1912 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FBF #B6BF6F
analogous
#6F8EBF #786FBF #A06FBF
triadic
#786FBF #BF786F #6FBF78
tetradic
#786FBF #BF6F8E #B6BF6F #6FBFA0
square
#786FBF #BF6F8E #B6BF6F #6FBFA0
split-complementary
#786FBF #BFA06F #8EBF6F
monochromatic
#3F377C #554AA7 #786FBF #A099D2 #C7C4E5

Accessibility & contrast

On white

4.35
#786FBF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#786FBF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FBF
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FBF#FFFFFF#000000##000000
##786FBF1.004.354.824.82
#FFFFFF4.351.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#547BC2
Deuteranopia (green-blind)
#5377BD
Tritanopia (blue-blind)
#657E8E
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #786fbf;
/* rgb */ color: rgb(120, 111, 191);
/* oklch */ color: oklch(58.5% 0.120 287.2);
Tailwind
colors: {
  custom: {
    50: '#a298d2',
    500: '#786fbf',
    950: '#000000',
  },
}
SCSS
$custom: #786fbf;
$custom-light: #a298d2;
$custom-dark: #000000;
JSON
{
  "hex": "#786fbf",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 191
  },
  "hsl": {
    "h": 246.75,
    "s": 38.462,
    "l": 59.216
  },
  "oklch": {
    "l": 0.58506,
    "c": 0.12036,
    "h": 287.2
  },
  "luminance": 0.19124
}

Semantic roles & 50–950 ramp

primary
#786FBF
secondary
#D1D5B5
accent
#CE59C1
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0D14
muted
#7F7E82

Preview Lab

Preview with #786FBF

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

Preview Lab → · Contrast checker → · Palette generator →

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