#786DB8#786DB8

#786DB8 is a mid, moderate blue. Relative luminance 0.184; OKLCH L 57.7% C 0.113 H 289.1°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#786DB8
RGBrgb(120, 109, 184)
HSLhsl(249, 35%, 57%)
HSVhsv(249, 41%, 72%)
CMYKcmyk(34.8%, 40.8%, 0%, 27.8%)
CIE-LABlab(49.97, 22.02, -38.20)
CIE-LCHlch(49.97, 44.09, 299.96°)
OKLaboklab(57.73% 0.0371 -0.1072)
OKLCHoklch(57.73% 0.113 289.1)
XYZxyz(21.8638, 18.3905, 47.7359)
Luminance0.1839 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DB8 #ADB86D
analogous
#6D88B8 #786DB8 #9D6DB8
triadic
#786DB8 #B8786D #6DB878
tetradic
#786DB8 #B86D88 #ADB86D #6DB89D
square
#786DB8 #B86D88 #ADB86D #6DB89D
split-complementary
#786DB8 #B89D6D #88B86D
monochromatic
#403873 #584C9C #786DB8 #9E96CC #C4BFE0

Accessibility & contrast

On white

4.49
#786DB8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#786DB8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786DB8
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786DB8#FFFFFF#000000##000000
##786DB81.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5578BB
Deuteranopia (green-blind)
#5575B6
Tritanopia (blue-blind)
#687B8A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #786db8;
/* rgb */ color: rgb(120, 109, 184);
/* oklch */ color: oklch(57.7% 0.113 289.1);
Tailwind
colors: {
  custom: {
    50: '#a197cd',
    500: '#786db8',
    950: '#000000',
  },
}
SCSS
$custom: #786db8;
$custom-light: #a197cd;
$custom-dark: #000000;
JSON
{
  "hex": "#786db8",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 184
  },
  "hsl": {
    "h": 248.8,
    "s": 34.562,
    "l": 57.451
  },
  "oklch": {
    "l": 0.57733,
    "c": 0.11341,
    "h": 289.1
  },
  "luminance": 0.18391
}

Semantic roles & 50–950 ramp

primary
#786DB8
secondary
#CBD0B1
accent
#CB5DBB
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #786DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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