#786CE9#786CE9

#786CE9 is a mid, vivid blue. Relative luminance 0.206; OKLCH L 60.5% C 0.182 H 283.9°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#786CE9
RGBrgb(120, 108, 233)
HSLhsl(246, 74%, 67%)
HSVhsv(246, 54%, 91%)
CMYKcmyk(48.5%, 53.6%, 0%, 8.6%)
CIE-LABlab(52.51, 36.65, -62.04)
CIE-LCHlch(52.51, 72.06, 300.57°)
OKLaboklab(60.55% 0.0437 -0.177)
OKLCHoklch(60.55% 0.182 283.9)
XYZxyz(27.8119, 20.6000, 79.5857)
Luminance0.2060 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CE9 #DDE96C
analogous
#6C9FE9 #786CE9 #B76CE9
triadic
#786CE9 #E9786C #6CE978
tetradic
#786CE9 #E96C9F #DDE96C #6CE9B7
square
#786CE9 #E96C9F #DDE96C #6CE9B7
split-complementary
#786CE9 #E9B76C #9FE96C
monochromatic
#2C1CBE #4737E1 #786CE9 #A9A1F1 #DAD6F9

Accessibility & contrast

On white

4.10
#786CE9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#786CE9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CE9
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CE9#FFFFFF#000000##000000
##786CE91.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2681ED
Deuteranopia (green-blind)
#1D79E6
Tritanopia (blue-blind)
#4F88A0
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #786ce9;
/* rgb */ color: rgb(120, 108, 233);
/* oklch */ color: oklch(60.5% 0.182 283.9);
Tailwind
colors: {
  custom: {
    50: '#a696f1',
    500: '#786ce9',
    950: '#000000',
  },
}
SCSS
$custom: #786ce9;
$custom-light: #a696f1;
$custom-dark: #000000;
JSON
{
  "hex": "#786ce9",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 233
  },
  "hsl": {
    "h": 245.76,
    "s": 73.964,
    "l": 66.863
  },
  "oklch": {
    "l": 0.60546,
    "c": 0.18235,
    "h": 283.9
  },
  "luminance": 0.20601
}

Semantic roles & 50–950 ramp

primary
#786CE9
secondary
#E9ECC4
accent
#D60FC3
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786CE9

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

Preview Lab → · Contrast checker → · Palette generator →

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