#786BBB#786BBB

#786BBB is a mid, vivid blue. Relative luminance 0.181; OKLCH L 57.5% C 0.121 H 289.5°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#786BBB
RGBrgb(120, 107, 187)
HSLhsl(250, 37%, 58%)
HSVhsv(250, 43%, 73%)
CMYKcmyk(35.8%, 42.8%, 0%, 26.7%)
CIE-LABlab(49.61, 24.05, -40.49)
CIE-LCHlch(49.61, 47.10, 300.71°)
OKLaboklab(57.51% 0.0403 -0.1139)
OKLCHoklch(57.51% 0.121 289.5)
XYZxyz(21.9707, 18.0957, 49.3393)
Luminance0.1810 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BBB #AEBB6B
analogous
#6B86BB #786BBB #A06BBB
triadic
#786BBB #BB786B #6BBB78
tetradic
#786BBB #BB6B86 #AEBB6B #6BBBA0
square
#786BBB #BB6B86 #AEBB6B #6BBBA0
split-complementary
#786BBB #BBA06B #86BB6B
monochromatic
#403676 #5749A0 #786BBB #9E95CE #C4BFE2

Accessibility & contrast

On white

4.55
#786BBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#786BBB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786BBB
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BBB#FFFFFF#000000##000000
##786BBB1.004.554.624.62
#FFFFFF4.551.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5178BE
Deuteranopia (green-blind)
#5174B9
Tritanopia (blue-blind)
#677A8A
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #786bbb;
/* rgb */ color: rgb(120, 107, 187);
/* oklch */ color: oklch(57.5% 0.121 289.5);
Tailwind
colors: {
  custom: {
    50: '#a295d0',
    500: '#786bbb',
    950: '#000000',
  },
}
SCSS
$custom: #786bbb;
$custom-light: #a295d0;
$custom-dark: #000000;
JSON
{
  "hex": "#786bbb",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 187
  },
  "hsl": {
    "h": 249.75,
    "s": 37.037,
    "l": 57.647
  },
  "oklch": {
    "l": 0.57514,
    "c": 0.1208,
    "h": 289.5
  },
  "luminance": 0.18096
}

Semantic roles & 50–950 ramp

primary
#786BBB
secondary
#CCD1B1
accent
#CD5BBA
background
#FAF9FC
surface
#F4F1F9
border
#CECBD2
text
#0F0D14
muted
#7F7E82

Preview Lab

Preview with #786BBB

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

Preview Lab → · Contrast checker → · Palette generator →

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