#786FDC#786FDC

#786FDC is a mid, vivid blue. Relative luminance 0.205; OKLCH L 60.2% C 0.161 H 284.2°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#786FDC
RGBrgb(120, 111, 220)
HSLhsl(245, 61%, 65%)
HSVhsv(245, 50%, 86%)
CMYKcmyk(45.5%, 49.5%, 0%, 13.7%)
CIE-LABlab(52.43, 31.05, -54.85)
CIE-LCHlch(52.43, 63.03, 299.51°)
OKLaboklab(60.23% 0.0395 -0.1559)
OKLCHoklch(60.23% 0.161 284.2)
XYZxyz(26.3446, 20.5281, 70.2705)
Luminance0.2053 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FDC #D3DC6F
analogous
#6F9DDC #786FDC #AE6FDC
triadic
#786FDC #DC786F #6FDC78
tetradic
#786FDC #DC6F9D #D3DC6F #6FDCAE
square
#786FDC #DC6F9D #D3DC6F #6FDCAE
split-complementary
#786FDC #DCAE6F #9DDC6F
monochromatic
#3329A8 #4A3ED0 #786FDC #A6A0E8 #D4D1F4

Accessibility & contrast

On white

4.11
#786FDC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#786FDC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FDC
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FDC#FFFFFF#000000##000000
##786FDC1.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F80E0
Deuteranopia (green-blind)
#3A7ADA
Tritanopia (blue-blind)
#57869B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #786fdc;
/* rgb */ color: rgb(120, 111, 220);
/* oklch */ color: oklch(60.2% 0.161 284.2);
Tailwind
colors: {
  custom: {
    50: '#a498e7',
    500: '#786fdc',
    950: '#000000',
  },
}
SCSS
$custom: #786fdc;
$custom-light: #a498e7;
$custom-dark: #000000;
JSON
{
  "hex": "#786fdc",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 220
  },
  "hsl": {
    "h": 244.954,
    "s": 60.894,
    "l": 64.902
  },
  "oklch": {
    "l": 0.60231,
    "c": 0.16082,
    "h": 284.2
  },
  "luminance": 0.20529
}

Semantic roles & 50–950 ramp

primary
#786FDC
secondary
#E3E6C1
accent
#C91DBA
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786FDC

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

Preview Lab → · Contrast checker → · Palette generator →

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