#786FB7#786FB7

#786FB7 is a mid, moderate blue. Relative luminance 0.188; OKLCH L 58.1% C 0.109 H 288.3°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#786FB7
RGBrgb(120, 111, 183)
HSLhsl(248, 33%, 58%)
HSVhsv(248, 39%, 72%)
CMYKcmyk(34.4%, 39.3%, 0%, 28.2%)
CIE-LABlab(50.43, 20.55, -36.89)
CIE-LCHlch(50.43, 42.23, 299.11°)
OKLaboklab(58.07% 0.0341 -0.1034)
OKLCHoklch(58.07% 0.109 288.3)
XYZxyz(21.9751, 18.7803, 47.2577)
Luminance0.1878 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FB7 #AEB76F
analogous
#6F8AB7 #786FB7 #9C6FB7
triadic
#786FB7 #B7786F #6FB778
tetradic
#786FB7 #B76F8A #AEB76F #6FB79C
square
#786FB7 #B76F8A #AEB76F #6FB79C
split-complementary
#786FB7 #B79C6F #8AB76F
monochromatic
#403972 #574E9B #786FB7 #9E98CB #C4C1E0

Accessibility & contrast

On white

4.42
#786FB7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#786FB7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FB7
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FB7#FFFFFF#000000##000000
##786FB71.004.424.764.76
#FFFFFF4.421.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#597ABA
Deuteranopia (green-blind)
#5876B5
Tritanopia (blue-blind)
#687C8A
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #786fb7;
/* rgb */ color: rgb(120, 111, 183);
/* oklch */ color: oklch(58.1% 0.109 288.3);
Tailwind
colors: {
  custom: {
    50: '#a198cd',
    500: '#786fb7',
    950: '#000000',
  },
}
SCSS
$custom: #786fb7;
$custom-light: #a198cd;
$custom-dark: #000000;
JSON
{
  "hex": "#786fb7",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 183
  },
  "hsl": {
    "h": 247.5,
    "s": 33.333,
    "l": 57.647
  },
  "oklch": {
    "l": 0.58069,
    "c": 0.10887,
    "h": 288.3
  },
  "luminance": 0.18781
}

Semantic roles & 50–950 ramp

primary
#786FB7
secondary
#CCCFB2
accent
#C95EBC
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #786FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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