#786FD2#786FD2

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

Color values

HEX#786FD2
RGBrgb(120, 111, 210)
HSLhsl(245, 52%, 63%)
HSVhsv(245, 47%, 82%)
CMYKcmyk(42.9%, 47.1%, 0%, 17.6%)
CIE-LABlab(51.85, 28.14, -50.11)
CIE-LCHlch(51.85, 57.47, 299.32°)
OKLaboklab(59.61% 0.0385 -0.142)
OKLCHoklch(59.61% 0.147 285.2)
XYZxyz(25.0597, 20.0141, 63.5030)
Luminance0.2001 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FD2 #C9D26F
analogous
#6F97D2 #786FD2 #AA6FD2
triadic
#786FD2 #D2786F #6FD278
tetradic
#786FD2 #D26F97 #C9D26F #6FD2AA
square
#786FD2 #D26F97 #C9D26F #6FD2AA
split-complementary
#786FD2 #D2AA6F #97D26F
monochromatic
#392F97 #4C40C3 #786FD2 #A49EE1 #CFCCEF

Accessibility & contrast

On white

4.20
#786FD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#786FD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FD2
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FD2#FFFFFF#000000##000000
##786FD21.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#477FD6
Deuteranopia (green-blind)
#4579D0
Tritanopia (blue-blind)
#5D8396
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #786fd2;
/* rgb */ color: rgb(120, 111, 210);
/* oklch */ color: oklch(59.6% 0.147 285.2);
Tailwind
colors: {
  custom: {
    50: '#a398e0',
    500: '#786fd2',
    950: '#000000',
  },
}
SCSS
$custom: #786fd2;
$custom-light: #a398e0;
$custom-dark: #000000;
JSON
{
  "hex": "#786fd2",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 210
  },
  "hsl": {
    "h": 245.455,
    "s": 52.381,
    "l": 62.941
  },
  "oklch": {
    "l": 0.59612,
    "c": 0.14709,
    "h": 285.2
  },
  "luminance": 0.20015
}

Semantic roles & 50–950 ramp

primary
#786FD2
secondary
#DDE0BD
accent
#C026B2
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#100D15
muted
#7F7E83

Preview Lab

Preview with #786FD2

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

Preview Lab → · Contrast checker → · Palette generator →

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