#786DE1#786DE1

#786DE1 is a mid, vivid blue. Relative luminance 0.204; OKLCH L 60.2% C 0.170 H 284.3°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#786DE1
RGBrgb(120, 109, 225)
HSLhsl(246, 66%, 65%)
HSVhsv(246, 52%, 88%)
CMYKcmyk(46.7%, 51.6%, 0%, 11.8%)
CIE-LABlab(52.25, 33.70, -57.97)
CIE-LCHlch(52.25, 67.05, 300.18°)
OKLaboklab(60.19% 0.0422 -0.165)
OKLCHoklch(60.19% 0.17 284.3)
XYZxyz(26.8010, 20.3653, 73.7383)
Luminance0.2037 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DE1 #D6E16D
analogous
#6D9CE1 #786DE1 #B26DE1
triadic
#786DE1 #E1786D #6DE178
tetradic
#786DE1 #E16D9C #D6E16D #6DE1B2
square
#786DE1 #E16D9C #D6E16D #6DE1B2
split-complementary
#786DE1 #E1B26D #9CE16D
monochromatic
#3124B0 #493AD7 #786DE1 #A7A0EB #D6D3F6

Accessibility & contrast

On white

4.14
#786DE1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#786DE1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786DE1
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786DE1#FFFFFF#000000##000000
##786DE11.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3580E5
Deuteranopia (green-blind)
#2F79DE
Tritanopia (blue-blind)
#54869D
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #786de1;
/* rgb */ color: rgb(120, 109, 225);
/* oklch */ color: oklch(60.2% 0.170 284.3);
Tailwind
colors: {
  custom: {
    50: '#a597eb',
    500: '#786de1',
    950: '#000000',
  },
}
SCSS
$custom: #786de1;
$custom-light: #a597eb;
$custom-dark: #000000;
JSON
{
  "hex": "#786de1",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 225
  },
  "hsl": {
    "h": 245.69,
    "s": 65.909,
    "l": 65.49
  },
  "oklch": {
    "l": 0.60192,
    "c": 0.17036,
    "h": 284.3
  },
  "luminance": 0.20367
}

Semantic roles & 50–950 ramp

primary
#786DE1
secondary
#E5E8C1
accent
#CE18BD
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786DE1

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

Preview Lab → · Contrast checker → · Palette generator →

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