#786CED#786CED

#786CED is a mid, vivid blue. Relative luminance 0.208; OKLCH L 60.8% C 0.188 H 283.5°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#786CED
RGBrgb(120, 108, 237)
HSLhsl(246, 78%, 68%)
HSVhsv(246, 54%, 93%)
CMYKcmyk(49.4%, 54.4%, 0%, 7.1%)
CIE-LABlab(52.76, 37.83, -63.87)
CIE-LCHlch(52.76, 74.23, 300.64°)
OKLaboklab(60.82% 0.0438 -0.1824)
OKLCHoklch(60.82% 0.188 283.5)
XYZxyz(28.3898, 20.8312, 82.6292)
Luminance0.2083 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CED #E1ED6C
analogous
#6CA1ED #786CED #B86CED
triadic
#786CED #ED786C #6CED78
tetradic
#786CED #ED6CA1 #E1ED6C #6CEDB8
square
#786CED #ED6CA1 #E1ED6C #6CEDB8
split-complementary
#786CED #EDB86C #A1ED6C
monochromatic
#2818C6 #4635E6 #786CED #AAA3F4 #DCD9FA

Accessibility & contrast

On white

4.06
#786CED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#786CED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CED
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CED#FFFFFF#000000##000000
##786CED1.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#1E82F1
Deuteranopia (green-blind)
#107AEA
Tritanopia (blue-blind)
#4C89A2
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #786ced;
/* rgb */ color: rgb(120, 108, 237);
/* oklch */ color: oklch(60.8% 0.188 283.5);
Tailwind
colors: {
  custom: {
    50: '#a796f4',
    500: '#786ced',
    950: '#000000',
  },
}
SCSS
$custom: #786ced;
$custom-light: #a796f4;
$custom-dark: #000000;
JSON
{
  "hex": "#786ced",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 237
  },
  "hsl": {
    "h": 245.581,
    "s": 78.182,
    "l": 67.647
  },
  "oklch": {
    "l": 0.60817,
    "c": 0.1876,
    "h": 283.5
  },
  "luminance": 0.20833
}

Semantic roles & 50–950 ramp

primary
#786CED
secondary
#EBEEC6
accent
#DA0BC7
background
#FAF9FF
surface
#F4F2FE
border
#CECCD6
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786CED

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

Preview Lab → · Contrast checker → · Palette generator →

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