#786EB8#786EB8

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

Color values

HEX#786EB8
RGBrgb(120, 110, 184)
HSLhsl(248, 34%, 58%)
HSVhsv(248, 40%, 72%)
CMYKcmyk(34.8%, 40.2%, 0%, 27.8%)
CIE-LABlab(50.22, 21.42, -37.80)
CIE-LCHlch(50.22, 43.45, 299.54°)
OKLaboklab(57.93% 0.0357 -0.106)
OKLCHoklch(57.93% 0.112 288.6)
XYZxyz(21.9711, 18.6050, 47.7716)
Luminance0.1861 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786EB8 #AEB86E
analogous
#6E89B8 #786EB8 #9D6EB8
triadic
#786EB8 #B8786E #6EB878
tetradic
#786EB8 #B86E89 #AEB86E #6EB89D
square
#786EB8 #B86E89 #AEB86E #6EB89D
split-complementary
#786EB8 #B89D6E #89B86E
monochromatic
#403873 #574D9C #786EB8 #9E97CC #C4C0E0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##786EB8#FFFFFF#000000##000000
##786EB81.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)
#5779BB
Deuteranopia (green-blind)
#5676B6
Tritanopia (blue-blind)
#687C8A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #786eb8;
/* rgb */ color: rgb(120, 110, 184);
/* oklch */ color: oklch(57.9% 0.112 288.6);
Tailwind
colors: {
  custom: {
    50: '#a197cd',
    500: '#786eb8',
    950: '#000000',
  },
}
SCSS
$custom: #786eb8;
$custom-light: #a197cd;
$custom-dark: #000000;
JSON
{
  "hex": "#786eb8",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 184
  },
  "hsl": {
    "h": 248.108,
    "s": 34.259,
    "l": 57.647
  },
  "oklch": {
    "l": 0.57927,
    "c": 0.11186,
    "h": 288.6
  },
  "luminance": 0.18606
}

Semantic roles & 50–950 ramp

primary
#786EB8
secondary
#CCD0B2
accent
#CA5DBC
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #786EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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