#786DE8#786DE8

#786DE8 is a mid, vivid blue. Relative luminance 0.208; OKLCH L 60.7% C 0.180 H 283.7°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#786DE8
RGBrgb(120, 109, 232)
HSLhsl(245, 73%, 67%)
HSVhsv(245, 53%, 91%)
CMYKcmyk(48.3%, 53%, 0%, 9%)
CIE-LABlab(52.68, 35.76, -61.20)
CIE-LCHlch(52.68, 70.89, 300.30°)
OKLaboklab(60.65% 0.0426 -0.1746)
OKLCHoklch(60.65% 0.18 283.7)
XYZxyz(27.7755, 20.7552, 78.8709)
Luminance0.2076 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DE8 #DDE86D
analogous
#6DA0E8 #786DE8 #B66DE8
triadic
#786DE8 #E8786D #6DE878
tetradic
#786DE8 #E86DA0 #DDE86D #6DE8B6
square
#786DE8 #E86DA0 #DDE86D #6DE8B6
split-complementary
#786DE8 #E8B66D #A0E86D
monochromatic
#2C1EBD #4738E0 #786DE8 #A9A2F0 #DAD7F9

Accessibility & contrast

On white

4.08
#786DE8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#786DE8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786DE8
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786DE8#FFFFFF#000000##000000
##786DE81.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B82EC
Deuteranopia (green-blind)
#237AE5
Tritanopia (blue-blind)
#5088A0
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #786de8;
/* rgb */ color: rgb(120, 109, 232);
/* oklch */ color: oklch(60.7% 0.180 283.7);
Tailwind
colors: {
  custom: {
    50: '#a697f0',
    500: '#786de8',
    950: '#000000',
  },
}
SCSS
$custom: #786de8;
$custom-light: #a697f0;
$custom-dark: #000000;
JSON
{
  "hex": "#786de8",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 232
  },
  "hsl": {
    "h": 245.366,
    "s": 72.781,
    "l": 66.863
  },
  "oklch": {
    "l": 0.60654,
    "c": 0.17969,
    "h": 283.7
  },
  "luminance": 0.20757
}

Semantic roles & 50–950 ramp

primary
#786DE8
secondary
#E9ECC5
accent
#D511C3
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786DE8

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

Preview Lab → · Contrast checker → · Palette generator →

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