#786DDB#786DDB

#786DDB is a mid, vivid blue. Relative luminance 0.200; OKLCH L 59.8% C 0.162 H 284.9°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#786DDB
RGBrgb(120, 109, 219)
HSLhsl(246, 60%, 64%)
HSVhsv(246, 50%, 86%)
CMYKcmyk(45.2%, 50.2%, 0%, 14.1%)
CIE-LABlab(51.89, 31.95, -55.16)
CIE-LCHlch(51.89, 63.74, 300.08°)
OKLaboklab(59.81% 0.0418 -0.1568)
OKLCHoklch(59.81% 0.162 284.9)
XYZxyz(25.9968, 20.0437, 69.5031)
Luminance0.2004 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DDB #D0DB6D
analogous
#6D99DB #786DDB #AF6DDB
triadic
#786DDB #DB786D #6DDB78
tetradic
#786DDB #DB6D99 #D0DB6D #6DDBAF
square
#786DDB #DB6D99 #D0DB6D #6DDBAF
split-complementary
#786DDB #DBAF6D #99DB6D
monochromatic
#3529A5 #4B3CCF #786DDB #A59EE7 #D3CFF3

Accessibility & contrast

On white

4.19
#786DDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#786DDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786DDB
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786DDB#FFFFFF#000000##000000
##786DDB1.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B7FDF
Deuteranopia (green-blind)
#3878D9
Tritanopia (blue-blind)
#58849A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #786ddb;
/* rgb */ color: rgb(120, 109, 219);
/* oklch */ color: oklch(59.8% 0.162 284.9);
Tailwind
colors: {
  custom: {
    50: '#a497e7',
    500: '#786ddb',
    950: '#000000',
  },
}
SCSS
$custom: #786ddb;
$custom-light: #a497e7;
$custom-dark: #000000;
JSON
{
  "hex": "#786ddb",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 219
  },
  "hsl": {
    "h": 246,
    "s": 60.44,
    "l": 64.314
  },
  "oklch": {
    "l": 0.59805,
    "c": 0.16227,
    "h": 284.9
  },
  "luminance": 0.20045
}

Semantic roles & 50–950 ramp

primary
#786DDB
secondary
#E1E5BF
accent
#C81DB7
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786DDB

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

Preview Lab → · Contrast checker → · Palette generator →

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