#786DE2#786DE2

#786DE2 is a mid, vivid blue. Relative luminance 0.204; OKLCH L 60.3% C 0.172 H 284.2°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#786DE2
RGBrgb(120, 109, 226)
HSLhsl(246, 67%, 66%)
HSVhsv(246, 52%, 89%)
CMYKcmyk(46.9%, 51.8%, 0%, 11.4%)
CIE-LABlab(52.31, 34.00, -58.43)
CIE-LCHlch(52.31, 67.60, 300.19°)
OKLaboklab(60.26% 0.0423 -0.1664)
OKLCHoklch(60.26% 0.172 284.2)
XYZxyz(26.9378, 20.4201, 74.4588)
Luminance0.2042 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DE2 #D7E26D
analogous
#6D9CE2 #786DE2 #B26DE2
triadic
#786DE2 #E2786D #6DE278
tetradic
#786DE2 #E26D9C #D7E26D #6DE2B2
square
#786DE2 #E26D9C #D7E26D #6DE2B2
split-complementary
#786DE2 #E2B26D #9CE26D
monochromatic
#3123B1 #493AD8 #786DE2 #A7A0EC #D6D3F6

Accessibility & contrast

On white

4.13
#786DE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#786DE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786DE2
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786DE2#FFFFFF#000000##000000
##786DE21.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3480E6
Deuteranopia (green-blind)
#2E79DF
Tritanopia (blue-blind)
#54869D
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #786de2;
/* rgb */ color: rgb(120, 109, 226);
/* oklch */ color: oklch(60.3% 0.172 284.2);
Tailwind
colors: {
  custom: {
    50: '#a597ec',
    500: '#786de2',
    950: '#000000',
  },
}
SCSS
$custom: #786de2;
$custom-light: #a597ec;
$custom-dark: #000000;
JSON
{
  "hex": "#786de2",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 226
  },
  "hsl": {
    "h": 245.641,
    "s": 66.857,
    "l": 65.686
  },
  "oklch": {
    "l": 0.60257,
    "c": 0.17169,
    "h": 284.2
  },
  "luminance": 0.20421
}

Semantic roles & 50–950 ramp

primary
#786DE2
secondary
#E5E9C2
accent
#CF17BD
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786DE2

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

Preview Lab → · Contrast checker → · Palette generator →

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