#786DB4#786DB4

#786DB4 is a mid, moderate blue. Relative luminance 0.182; OKLCH L 57.5% C 0.108 H 289.7°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#786DB4
RGBrgb(120, 109, 180)
HSLhsl(249, 32%, 57%)
HSVhsv(249, 39%, 71%)
CMYKcmyk(33.3%, 39.4%, 0%, 29.4%)
CIE-LABlab(49.77, 20.93, -36.20)
CIE-LCHlch(49.77, 41.81, 300.04°)
OKLaboklab(57.52% 0.0363 -0.1014)
OKLCHoklch(57.52% 0.108 289.7)
XYZxyz(21.4504, 18.2251, 45.5588)
Luminance0.1823 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DB4 #A9B46D
analogous
#6D86B4 #786DB4 #9C6DB4
triadic
#786DB4 #B4786D #6DB478
tetradic
#786DB4 #B46D86 #A9B46D #6DB49C
square
#786DB4 #B46D86 #A9B46D #6DB49C
split-complementary
#786DB4 #B49C6D #86B46D
monochromatic
#41396E #594D96 #786DB4 #9D95C9 #C3BEDE

Accessibility & contrast

On white

4.52
#786DB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##786DB4#FFFFFF#000000##000000
##786DB41.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5778B7
Deuteranopia (green-blind)
#5875B2
Tritanopia (blue-blind)
#697A88
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #786db4;
/* rgb */ color: rgb(120, 109, 180);
/* oklch */ color: oklch(57.5% 0.108 289.7);
Tailwind
colors: {
  custom: {
    50: '#a197cb',
    500: '#786db4',
    950: '#000000',
  },
}
SCSS
$custom: #786db4;
$custom-light: #a197cb;
$custom-dark: #000000;
JSON
{
  "hex": "#786db4",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 180
  },
  "hsl": {
    "h": 249.296,
    "s": 32.127,
    "l": 56.667
  },
  "oklch": {
    "l": 0.57517,
    "c": 0.10766,
    "h": 289.7
  },
  "luminance": 0.18226
}

Semantic roles & 50–950 ramp

primary
#786DB4
secondary
#C8CDB0
accent
#C860B8
background
#FAF9FC
surface
#F3F2F8
border
#CDCCD1
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #786DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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