#786BED#786BED

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

Color values

HEX#786BED
RGBrgb(120, 107, 237)
HSLhsl(246, 78%, 67%)
HSVhsv(246, 55%, 93%)
CMYKcmyk(49.4%, 54.9%, 0%, 7.1%)
CIE-LABlab(52.53, 38.42, -64.24)
CIE-LCHlch(52.53, 74.85, 300.88°)
OKLaboklab(60.65% 0.0449 -0.1835)
OKLCHoklch(60.65% 0.189 283.8)
XYZxyz(28.2849, 20.6214, 82.5943)
Luminance0.2062 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BED #E0ED6B
analogous
#6B9FED #786BED #B96BED
triadic
#786BED #ED786B #6BED78
tetradic
#786BED #ED6B9F #E0ED6B #6BEDB9
square
#786BED #ED6B9F #E0ED6B #6BEDB9
split-complementary
#786BED #EDB96B #9FED6B
monochromatic
#2918C6 #4634E6 #786BED #AAA2F4 #DCD8FA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##786BED#FFFFFF#000000##000000
##786BED1.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)
#1981F1
Deuteranopia (green-blind)
#0879EA
Tritanopia (blue-blind)
#4C88A2
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #786bed;
/* rgb */ color: rgb(120, 107, 237);
/* oklch */ color: oklch(60.6% 0.189 283.8);
Tailwind
colors: {
  custom: {
    50: '#a795f4',
    500: '#786bed',
    950: '#000000',
  },
}
SCSS
$custom: #786bed;
$custom-light: #a795f4;
$custom-dark: #000000;
JSON
{
  "hex": "#786bed",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 237
  },
  "hsl": {
    "h": 246,
    "s": 78.313,
    "l": 67.451
  },
  "oklch": {
    "l": 0.60645,
    "c": 0.18893,
    "h": 283.8
  },
  "luminance": 0.20623
}

Semantic roles & 50–950 ramp

primary
#786BED
secondary
#EAEEC6
accent
#DB0BC6
background
#FAF9FF
surface
#F4F2FE
border
#CECCD6
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786BED

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

Preview Lab → · Contrast checker → · Palette generator →

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