#786CE4#786CE4

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

Color values

HEX#786CE4
RGBrgb(120, 108, 228)
HSLhsl(246, 69%, 66%)
HSVhsv(246, 53%, 89%)
CMYKcmyk(47.4%, 52.6%, 0%, 10.6%)
CIE-LABlab(52.20, 35.18, -59.74)
CIE-LCHlch(52.20, 69.32, 300.49°)
OKLaboklab(60.21% 0.0435 -0.1703)
OKLCHoklch(60.21% 0.176 284.3)
XYZxyz(27.1077, 20.3183, 75.8772)
Luminance0.2032 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CE4 #D8E46C
analogous
#6C9CE4 #786CE4 #B46CE4
triadic
#786CE4 #E4786C #6CE478
tetradic
#786CE4 #E46C9C #D8E46C #6CE4B4
square
#786CE4 #E46C9C #D8E46C #6CE4B4
split-complementary
#786CE4 #E4B46C #9CE46C
monochromatic
#3021B4 #4938DB #786CE4 #A7A0ED #D7D3F7

Accessibility & contrast

On white

4.15
#786CE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#786CE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CE4
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CE4#FFFFFF#000000##000000
##786CE41.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E80E8
Deuteranopia (green-blind)
#2879E1
Tritanopia (blue-blind)
#53869E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #786ce4;
/* rgb */ color: rgb(120, 108, 228);
/* oklch */ color: oklch(60.2% 0.176 284.3);
Tailwind
colors: {
  custom: {
    50: '#a696ed',
    500: '#786ce4',
    950: '#000000',
  },
}
SCSS
$custom: #786ce4;
$custom-light: #a696ed;
$custom-dark: #000000;
JSON
{
  "hex": "#786ce4",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 228
  },
  "hsl": {
    "h": 246,
    "s": 68.966,
    "l": 65.882
  },
  "oklch": {
    "l": 0.60212,
    "c": 0.17573,
    "h": 284.3
  },
  "luminance": 0.2032
}

Semantic roles & 50–950 ramp

primary
#786CE4
secondary
#E6EAC2
accent
#D115BE
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786CE4

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

Preview Lab → · Contrast checker → · Palette generator →

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