#786DB5#786DB5

#786DB5 is a mid, moderate blue. Relative luminance 0.183; OKLCH L 57.6% C 0.109 H 289.5°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#786DB5
RGBrgb(120, 109, 181)
HSLhsl(249, 33%, 57%)
HSVhsv(249, 40%, 71%)
CMYKcmyk(33.7%, 39.8%, 0%, 29%)
CIE-LABlab(49.82, 21.21, -36.70)
CIE-LCHlch(49.82, 42.38, 300.02°)
OKLaboklab(57.57% 0.0365 -0.1028)
OKLCHoklch(57.57% 0.109 289.5)
XYZxyz(21.5527, 18.2660, 46.0973)
Luminance0.1827 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DB5 #AAB56D
analogous
#6D86B5 #786DB5 #9C6DB5
triadic
#786DB5 #B5786D #6DB578
tetradic
#786DB5 #B56D86 #AAB56D #6DB59C
square
#786DB5 #B56D86 #AAB56D #6DB59C
split-complementary
#786DB5 #B59C6D #86B56D
monochromatic
#41386F #584D98 #786DB5 #9E96CA #C3BEDE

Accessibility & contrast

On white

4.51
#786DB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#786DB5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786DB5
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786DB5#FFFFFF#000000##000000
##786DB51.004.514.654.65
#FFFFFF4.511.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5778B8
Deuteranopia (green-blind)
#5775B3
Tritanopia (blue-blind)
#697A88
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #786db5;
/* rgb */ color: rgb(120, 109, 181);
/* oklch */ color: oklch(57.6% 0.109 289.5);
Tailwind
colors: {
  custom: {
    50: '#a197cb',
    500: '#786db5',
    950: '#000000',
  },
}
SCSS
$custom: #786db5;
$custom-light: #a197cb;
$custom-dark: #000000;
JSON
{
  "hex": "#786db5",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 181
  },
  "hsl": {
    "h": 249.167,
    "s": 32.727,
    "l": 56.863
  },
  "oklch": {
    "l": 0.5757,
    "c": 0.1091,
    "h": 289.5
  },
  "luminance": 0.18267
}

Semantic roles & 50–950 ramp

primary
#786DB5
secondary
#C9CEB0
accent
#C95FB9
background
#FAF9FC
surface
#F4F2F8
border
#CECCD1
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #786DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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