#786DBD#786DBD

#786DBD is a mid, vivid blue. Relative luminance 0.186; OKLCH L 58.0% C 0.121 H 288.4°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#786DBD
RGBrgb(120, 109, 189)
HSLhsl(248, 38%, 58%)
HSVhsv(248, 42%, 74%)
CMYKcmyk(36.5%, 42.3%, 0%, 25.9%)
CIE-LABlab(50.22, 23.40, -40.69)
CIE-LCHlch(50.22, 46.93, 299.90°)
OKLaboklab(58.01% 0.038 -0.1144)
OKLCHoklch(58.01% 0.121 288.4)
XYZxyz(22.3972, 18.6038, 50.5451)
Luminance0.1860 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DBD #B2BD6D
analogous
#6D8ABD #786DBD #A06DBD
triadic
#786DBD #BD786D #6DBD78
tetradic
#786DBD #BD6D8A #B2BD6D #6DBDA0
square
#786DBD #BD6D8A #B2BD6D #6DBDA0
split-complementary
#786DBD #BDA06D #8ABD6D
monochromatic
#403779 #564AA3 #786DBD #9F97D0 #C6C1E3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##786DBD#FFFFFF#000000##000000
##786DBD1.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)
#5279C0
Deuteranopia (green-blind)
#5276BB
Tritanopia (blue-blind)
#667C8C
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #786dbd;
/* rgb */ color: rgb(120, 109, 189);
/* oklch */ color: oklch(58.0% 0.121 288.4);
Tailwind
colors: {
  custom: {
    50: '#a297d1',
    500: '#786dbd',
    950: '#000000',
  },
}
SCSS
$custom: #786dbd;
$custom-light: #a297d1;
$custom-dark: #000000;
JSON
{
  "hex": "#786dbd",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 189
  },
  "hsl": {
    "h": 248.25,
    "s": 37.736,
    "l": 58.431
  },
  "oklch": {
    "l": 0.58009,
    "c": 0.12057,
    "h": 288.4
  },
  "luminance": 0.18604
}

Semantic roles & 50–950 ramp

primary
#786DBD
secondary
#CED3B3
accent
#CE5ABE
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0D14
muted
#7F7E82

Preview Lab

Preview with #786DBD

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

Preview Lab → · Contrast checker → · Palette generator →

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