#786DB7#786DB7

#786DB7 is a mid, moderate blue. Relative luminance 0.183; OKLCH L 57.7% C 0.112 H 289.2°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#786DB7
RGBrgb(120, 109, 183)
HSLhsl(249, 34%, 57%)
HSVhsv(249, 40%, 72%)
CMYKcmyk(34.4%, 40.4%, 0%, 28.2%)
CIE-LABlab(49.92, 21.75, -37.70)
CIE-LCHlch(49.92, 43.52, 299.98°)
OKLaboklab(57.68% 0.0369 -0.1057)
OKLCHoklch(57.68% 0.112 289.2)
XYZxyz(21.7593, 18.3487, 47.1858)
Luminance0.1835 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DB7 #ACB76D
analogous
#6D87B7 #786DB7 #9D6DB7
triadic
#786DB7 #B7786D #6DB778
tetradic
#786DB7 #B76D87 #ACB76D #6DB79D
square
#786DB7 #B76D87 #ACB76D #6DB79D
split-complementary
#786DB7 #B79D6D #87B76D
monochromatic
#413872 #584C9B #786DB7 #9E96CB #C4BFDF

Accessibility & contrast

On white

4.50
#786DB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.67
#786DB7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786DB7
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786DB7#FFFFFF#000000##000000
##786DB71.004.504.674.67
#FFFFFF4.501.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5678BA
Deuteranopia (green-blind)
#5675B5
Tritanopia (blue-blind)
#687B89
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #786db7;
/* rgb */ color: rgb(120, 109, 183);
/* oklch */ color: oklch(57.7% 0.112 289.2);
Tailwind
colors: {
  custom: {
    50: '#a197cd',
    500: '#786db7',
    950: '#000000',
  },
}
SCSS
$custom: #786db7;
$custom-light: #a197cd;
$custom-dark: #000000;
JSON
{
  "hex": "#786db7",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 183
  },
  "hsl": {
    "h": 248.919,
    "s": 33.945,
    "l": 57.255
  },
  "oklch": {
    "l": 0.57678,
    "c": 0.11198,
    "h": 289.2
  },
  "luminance": 0.18349
}

Semantic roles & 50–950 ramp

primary
#786DB7
secondary
#CACFB1
accent
#CA5EBA
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #786DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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