#786FD1#786FD1

#786FD1 is a mid, vivid blue. Relative luminance 0.200; OKLCH L 59.6% C 0.146 H 285.3°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#786FD1
RGBrgb(120, 111, 209)
HSLhsl(246, 52%, 63%)
HSVhsv(246, 47%, 82%)
CMYKcmyk(42.6%, 46.9%, 0%, 18%)
CIE-LABlab(51.80, 27.86, -49.63)
CIE-LCHlch(51.80, 56.91, 299.30°)
OKLaboklab(59.55% 0.0383 -0.1406)
OKLCHoklch(59.55% 0.146 285.3)
XYZxyz(24.9355, 19.9644, 62.8489)
Luminance0.1996 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FD1 #C8D16F
analogous
#6F97D1 #786FD1 #A96FD1
triadic
#786FD1 #D1786F #6FD178
tetradic
#786FD1 #D16F97 #C8D16F #6FD1A9
square
#786FD1 #D16F97 #C8D16F #6FD1A9
split-complementary
#786FD1 #D1A96F #97D16F
monochromatic
#393096 #4D41C2 #786FD1 #A39DE0 #CFCCEF

Accessibility & contrast

On white

4.21
#786FD1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#786FD1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FD1
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FD1#FFFFFF#000000##000000
##786FD11.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#487ED5
Deuteranopia (green-blind)
#4679CF
Tritanopia (blue-blind)
#5D8396
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #786fd1;
/* rgb */ color: rgb(120, 111, 209);
/* oklch */ color: oklch(59.6% 0.146 285.3);
Tailwind
colors: {
  custom: {
    50: '#a398df',
    500: '#786fd1',
    950: '#000000',
  },
}
SCSS
$custom: #786fd1;
$custom-light: #a398df;
$custom-dark: #000000;
JSON
{
  "hex": "#786fd1",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 209
  },
  "hsl": {
    "h": 245.51,
    "s": 51.579,
    "l": 62.745
  },
  "oklch": {
    "l": 0.59551,
    "c": 0.14571,
    "h": 285.3
  },
  "luminance": 0.19965
}

Semantic roles & 50–950 ramp

primary
#786FD1
secondary
#DCE0BC
accent
#BF27B1
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #786FD1

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

Preview Lab → · Contrast checker → · Palette generator →

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