#786EBA#786EBA

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

Color values

HEX#786EBA
RGBrgb(120, 110, 186)
HSLhsl(248, 36%, 58%)
HSVhsv(248, 41%, 73%)
CMYKcmyk(35.5%, 40.9%, 0%, 27.1%)
CIE-LABlab(50.32, 21.97, -38.80)
CIE-LCHlch(50.32, 44.58, 299.52°)
OKLaboklab(58.04% 0.0361 -0.1089)
OKLCHoklch(58.04% 0.115 288.3)
XYZxyz(22.1822, 18.6895, 48.8836)
Luminance0.1869 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786EBA #B0BA6E
analogous
#6E8ABA #786EBA #9E6EBA
triadic
#786EBA #BA786E #6EBA78
tetradic
#786EBA #BA6E8A #B0BA6E #6EBA9E
square
#786EBA #BA6E8A #B0BA6E #6EBA9E
split-complementary
#786EBA #BA9E6E #8ABA6E
monochromatic
#403876 #574C9F #786EBA #9F97CE #C5C1E1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##786EBA#FFFFFF#000000##000000
##786EBA1.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)
#5679BD
Deuteranopia (green-blind)
#5576B8
Tritanopia (blue-blind)
#677C8B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #786eba;
/* rgb */ color: rgb(120, 110, 186);
/* oklch */ color: oklch(58.0% 0.115 288.3);
Tailwind
colors: {
  custom: {
    50: '#a197cf',
    500: '#786eba',
    950: '#000000',
  },
}
SCSS
$custom: #786eba;
$custom-light: #a197cf;
$custom-dark: #000000;
JSON
{
  "hex": "#786eba",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 186
  },
  "hsl": {
    "h": 247.895,
    "s": 35.514,
    "l": 58.039
  },
  "oklch": {
    "l": 0.58036,
    "c": 0.11473,
    "h": 288.3
  },
  "luminance": 0.1869
}

Semantic roles & 50–950 ramp

primary
#786EBA
secondary
#CDD1B3
accent
#CC5CBD
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0D14
muted
#7F7E82

Preview Lab

Preview with #786EBA

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

Preview Lab → · Contrast checker → · Palette generator →

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