#786DD2#786DD2

#786DD2 is a mid, vivid blue. Relative luminance 0.196; OKLCH L 59.2% C 0.150 H 285.8°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#786DD2
RGBrgb(120, 109, 210)
HSLhsl(247, 53%, 63%)
HSVhsv(247, 48%, 82%)
CMYKcmyk(42.9%, 48.1%, 0%, 17.6%)
CIE-LABlab(51.36, 29.34, -50.90)
CIE-LCHlch(51.36, 58.75, 299.96°)
OKLaboklab(59.24% 0.0409 -0.1443)
OKLCHoklch(59.24% 0.15 285.8)
XYZxyz(24.8439, 19.5825, 63.4311)
Luminance0.1958 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DD2 #C7D26D
analogous
#6D94D2 #786DD2 #AB6DD2
triadic
#786DD2 #D2786D #6DD278
tetradic
#786DD2 #D26D94 #C7D26D #6DD2AB
square
#786DD2 #D26D94 #C7D26D #6DD2AB
split-complementary
#786DD2 #D2AB6D #94D26D
monochromatic
#3A2E96 #4D3EC4 #786DD2 #A39CE0 #CFCBEF

Accessibility & contrast

On white

4.27
#786DD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#786DD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786DD2
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786DD2#FFFFFF#000000##000000
##786DD21.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#447DD6
Deuteranopia (green-blind)
#4277D0
Tritanopia (blue-blind)
#5D8295
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #786dd2;
/* rgb */ color: rgb(120, 109, 210);
/* oklch */ color: oklch(59.2% 0.150 285.8);
Tailwind
colors: {
  custom: {
    50: '#a497e0',
    500: '#786dd2',
    950: '#000000',
  },
}
SCSS
$custom: #786dd2;
$custom-light: #a497e0;
$custom-dark: #000000;
JSON
{
  "hex": "#786dd2",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 210
  },
  "hsl": {
    "h": 246.535,
    "s": 52.88,
    "l": 62.549
  },
  "oklch": {
    "l": 0.59242,
    "c": 0.14998,
    "h": 285.8
  },
  "luminance": 0.19583
}

Semantic roles & 50–950 ramp

primary
#786DD2
secondary
#DCE0BB
accent
#C025AF
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#100D15
muted
#7F7E83

Preview Lab

Preview with #786DD2

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

Preview Lab → · Contrast checker → · Palette generator →

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