#786DBA#786DBA

#786DBA is a mid, moderate blue. Relative luminance 0.185; OKLCH L 57.8% C 0.116 H 288.8°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#786DBA
RGBrgb(120, 109, 186)
HSLhsl(249, 36%, 58%)
HSVhsv(249, 41%, 73%)
CMYKcmyk(35.5%, 41.4%, 0%, 27.1%)
CIE-LABlab(50.07, 22.57, -39.20)
CIE-LCHlch(50.07, 45.23, 299.93°)
OKLaboklab(57.84% 0.0374 -0.1101)
OKLCHoklch(57.84% 0.116 288.8)
XYZxyz(22.0749, 18.4749, 48.8478)
Luminance0.1848 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DBA #AFBA6D
analogous
#6D89BA #786DBA #9E6DBA
triadic
#786DBA #BA786D #6DBA78
tetradic
#786DBA #BA6D89 #AFBA6D #6DBA9E
square
#786DBA #BA6D89 #AFBA6D #6DBA9E
split-complementary
#786DBA #BA9E6D #89BA6D
monochromatic
#403775 #574B9F #786DBA #9E97CE #C5C0E1

Accessibility & contrast

On white

4.47
#786DBA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#786DBA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786DBA
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786DBA#FFFFFF#000000##000000
##786DBA1.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5479BD
Deuteranopia (green-blind)
#5475B8
Tritanopia (blue-blind)
#677C8A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #786dba;
/* rgb */ color: rgb(120, 109, 186);
/* oklch */ color: oklch(57.8% 0.116 288.8);
Tailwind
colors: {
  custom: {
    50: '#a197cf',
    500: '#786dba',
    950: '#000000',
  },
}
SCSS
$custom: #786dba;
$custom-light: #a197cf;
$custom-dark: #000000;
JSON
{
  "hex": "#786dba",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 186
  },
  "hsl": {
    "h": 248.571,
    "s": 35.814,
    "l": 57.843
  },
  "oklch": {
    "l": 0.57842,
    "c": 0.11628,
    "h": 288.8
  },
  "luminance": 0.18476
}

Semantic roles & 50–950 ramp

primary
#786DBA
secondary
#CCD1B2
accent
#CC5CBC
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0D14
muted
#7F7E82

Preview Lab

Preview with #786DBA

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

Preview Lab → · Contrast checker → · Palette generator →

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