#786DEF#786DEF

#786DEF is a mid, vivid blue. Relative luminance 0.212; OKLCH L 61.1% C 0.189 H 283.1°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#786DEF
RGBrgb(120, 109, 239)
HSLhsl(245, 80%, 68%)
HSVhsv(245, 54%, 94%)
CMYKcmyk(49.8%, 54.4%, 0%, 6.3%)
CIE-LABlab(53.13, 37.84, -64.40)
CIE-LCHlch(53.13, 74.70, 300.44°)
OKLaboklab(61.13% 0.0428 -0.184)
OKLCHoklch(61.13% 0.189 283.1)
XYZxyz(28.7897, 21.1608, 84.2121)
Luminance0.2116 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DEF #E4EF6D
analogous
#6DA3EF #786DEF #B96DEF
triadic
#786DEF #EF786D #6DEF78
tetradic
#786DEF #EF6DA3 #E4EF6D #6DEFB9
square
#786DEF #EF6DA3 #E4EF6D #6DEFB9
split-complementary
#786DEF #EFB96D #A3EF6D
monochromatic
#2616CB #4536E9 #786DEF #ABA4F5 #DEDBFB

Accessibility & contrast

On white

4.01
#786DEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#786DEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786DEF
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786DEF#FFFFFF#000000##000000
##786DEF1.004.015.235.23
#FFFFFF4.011.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#1E83F3
Deuteranopia (green-blind)
#0C7BEC
Tritanopia (blue-blind)
#4B8AA4
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #786def;
/* rgb */ color: rgb(120, 109, 239);
/* oklch */ color: oklch(61.1% 0.189 283.1);
Tailwind
colors: {
  custom: {
    50: '#a797f5',
    500: '#786def',
    950: '#000000',
  },
}
SCSS
$custom: #786def;
$custom-light: #a797f5;
$custom-dark: #000000;
JSON
{
  "hex": "#786def",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 239
  },
  "hsl": {
    "h": 245.077,
    "s": 80.247,
    "l": 68.235
  },
  "oklch": {
    "l": 0.61127,
    "c": 0.1889,
    "h": 283.1
  },
  "luminance": 0.21162
}

Semantic roles & 50–950 ramp

primary
#786DEF
secondary
#ECF0C8
accent
#DD09CB
background
#FAF9FF
surface
#F4F2FE
border
#CECCD6
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786DEF

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

Preview Lab → · Contrast checker → · Palette generator →

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