#786DD5#786DD5

#786DD5 is a mid, vivid blue. Relative luminance 0.197; OKLCH L 59.4% C 0.154 H 285.5°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#786DD5
RGBrgb(120, 109, 213)
HSLhsl(246, 55%, 63%)
HSVhsv(246, 49%, 84%)
CMYKcmyk(43.7%, 48.8%, 0%, 16.5%)
CIE-LABlab(51.53, 30.20, -52.32)
CIE-LCHlch(51.53, 60.42, 300.00°)
OKLaboklab(59.43% 0.0412 -0.1485)
OKLCHoklch(59.43% 0.154 285.5)
XYZxyz(25.2211, 19.7334, 65.4179)
Luminance0.1973 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DD5 #CAD56D
analogous
#6D96D5 #786DD5 #AC6DD5
triadic
#786DD5 #D5786D #6DD578
tetradic
#786DD5 #D56D96 #CAD56D #6DD5AC
square
#786DD5 #D56D96 #CAD56D #6DD5AC
split-complementary
#786DD5 #D5AC6D #96D56D
monochromatic
#382D9B #4C3DC7 #786DD5 #A49DE3 #D0CCF0

Accessibility & contrast

On white

4.25
#786DD5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#786DD5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786DD5
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786DD5#FFFFFF#000000##000000
##786DD51.004.254.954.95
#FFFFFF4.251.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#417ED9
Deuteranopia (green-blind)
#3E78D3
Tritanopia (blue-blind)
#5B8397
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #786dd5;
/* rgb */ color: rgb(120, 109, 213);
/* oklch */ color: oklch(59.4% 0.154 285.5);
Tailwind
colors: {
  custom: {
    50: '#a497e2',
    500: '#786dd5',
    950: '#000000',
  },
}
SCSS
$custom: #786dd5;
$custom-light: #a497e2;
$custom-dark: #000000;
JSON
{
  "hex": "#786dd5",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 213
  },
  "hsl": {
    "h": 246.346,
    "s": 55.319,
    "l": 63.137
  },
  "oklch": {
    "l": 0.59428,
    "c": 0.1541,
    "h": 285.5
  },
  "luminance": 0.19734
}

Semantic roles & 50–950 ramp

primary
#786DD5
secondary
#DEE2BC
accent
#C323B2
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#100D15
muted
#7F7E83

Preview Lab

Preview with #786DD5

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

Preview Lab → · Contrast checker → · Palette generator →

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