#786CE0#786CE0

#786CE0 is a mid, vivid blue. Relative luminance 0.201; OKLCH L 59.9% C 0.170 H 284.7°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#786CE0
RGBrgb(120, 108, 224)
HSLhsl(246, 65%, 65%)
HSVhsv(246, 52%, 88%)
CMYKcmyk(46.4%, 51.8%, 0%, 12.2%)
CIE-LABlab(51.95, 34.00, -57.88)
CIE-LCHlch(51.95, 67.13, 300.43°)
OKLaboklab(59.95% 0.0433 -0.1648)
OKLCHoklch(59.95% 0.17 284.7)
XYZxyz(26.5589, 20.0988, 72.9866)
Luminance0.2010 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CE0 #D4E06C
analogous
#6C9AE0 #786CE0 #B26CE0
triadic
#786CE0 #E0786C #6CE078
tetradic
#786CE0 #E06C9A #D4E06C #6CE0B2
square
#786CE0 #E06C9A #D4E06C #6CE0B2
split-complementary
#786CE0 #E0B26C #9AE06C
monochromatic
#3325AD #4A39D5 #786CE0 #A69FEB #D5D1F5

Accessibility & contrast

On white

4.18
#786CE0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#786CE0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CE0
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CE0#FFFFFF#000000##000000
##786CE01.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#347FE4
Deuteranopia (green-blind)
#2F78DD
Tritanopia (blue-blind)
#55859C
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #786ce0;
/* rgb */ color: rgb(120, 108, 224);
/* oklch */ color: oklch(59.9% 0.170 284.7);
Tailwind
colors: {
  custom: {
    50: '#a596ea',
    500: '#786ce0',
    950: '#000000',
  },
}
SCSS
$custom: #786ce0;
$custom-light: #a596ea;
$custom-dark: #000000;
JSON
{
  "hex": "#786ce0",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 224
  },
  "hsl": {
    "h": 246.207,
    "s": 65.169,
    "l": 65.098
  },
  "oklch": {
    "l": 0.59949,
    "c": 0.1704,
    "h": 284.7
  },
  "luminance": 0.201
}

Semantic roles & 50–950 ramp

primary
#786CE0
secondary
#E3E8C0
accent
#CD18BA
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786CE0

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

Preview Lab → · Contrast checker → · Palette generator →

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