#786EB5#786EB5

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

Color values

HEX#786EB5
RGBrgb(120, 110, 181)
HSLhsl(248, 32%, 57%)
HSVhsv(248, 39%, 71%)
CMYKcmyk(33.7%, 39.2%, 0%, 29%)
CIE-LABlab(50.07, 20.60, -36.29)
CIE-LCHlch(50.07, 41.73, 299.58°)
OKLaboklab(57.77% 0.0351 -0.1017)
OKLCHoklch(57.77% 0.108 289)
XYZxyz(21.6599, 18.4806, 46.1330)
Luminance0.1848 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786EB5 #ABB56E
analogous
#6E88B5 #786EB5 #9C6EB5
triadic
#786EB5 #B5786E #6EB578
tetradic
#786EB5 #B56E88 #ABB56E #6EB59C
square
#786EB5 #B56E88 #ABB56E #6EB59C
split-complementary
#786EB5 #B59C6E #88B56E
monochromatic
#413970 #584E98 #786EB5 #9E97CA #C3BFDE

Accessibility & contrast

On white

4.47
#786EB5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#786EB5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786EB5
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786EB5#FFFFFF#000000##000000
##786EB51.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5879B8
Deuteranopia (green-blind)
#5875B3
Tritanopia (blue-blind)
#697B89
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #786eb5;
/* rgb */ color: rgb(120, 110, 181);
/* oklch */ color: oklch(57.8% 0.108 289.0);
Tailwind
colors: {
  custom: {
    50: '#a197cb',
    500: '#786eb5',
    950: '#000000',
  },
}
SCSS
$custom: #786eb5;
$custom-light: #a197cb;
$custom-dark: #000000;
JSON
{
  "hex": "#786eb5",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 181
  },
  "hsl": {
    "h": 248.451,
    "s": 32.42,
    "l": 57.059
  },
  "oklch": {
    "l": 0.57766,
    "c": 0.10754,
    "h": 289
  },
  "luminance": 0.18481
}

Semantic roles & 50–950 ramp

primary
#786EB5
secondary
#CACEB1
accent
#C95FBA
background
#FAF9FC
surface
#F4F2F8
border
#CECCD1
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #786EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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