#786FD3#786FD3

#786FD3 is a mid, vivid blue. Relative luminance 0.201; OKLCH L 59.7% C 0.148 H 285.1°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#786FD3
RGBrgb(120, 111, 211)
HSLhsl(245, 53%, 63%)
HSVhsv(245, 47%, 83%)
CMYKcmyk(43.1%, 47.4%, 0%, 17.3%)
CIE-LABlab(51.91, 28.43, -50.59)
CIE-LCHlch(51.91, 58.03, 299.34°)
OKLaboklab(59.67% 0.0386 -0.1434)
OKLCHoklch(59.67% 0.148 285.1)
XYZxyz(25.1846, 20.0641, 64.1612)
Luminance0.2006 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FD3 #CAD36F
analogous
#6F98D3 #786FD3 #AA6FD3
triadic
#786FD3 #D3786F #6FD378
tetradic
#786FD3 #D36F98 #CAD36F #6FD3AA
square
#786FD3 #D36F98 #CAD36F #6FD3AA
split-complementary
#786FD3 #D3AA6F #98D36F
monochromatic
#382F99 #4C40C5 #786FD3 #A49EE1 #D0CDF0

Accessibility & contrast

On white

4.19
#786FD3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#786FD3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FD3
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FD3#FFFFFF#000000##000000
##786FD31.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#477FD7
Deuteranopia (green-blind)
#4479D1
Tritanopia (blue-blind)
#5C8497
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #786fd3;
/* rgb */ color: rgb(120, 111, 211);
/* oklch */ color: oklch(59.7% 0.148 285.1);
Tailwind
colors: {
  custom: {
    50: '#a498e1',
    500: '#786fd3',
    950: '#000000',
  },
}
SCSS
$custom: #786fd3;
$custom-light: #a498e1;
$custom-dark: #000000;
JSON
{
  "hex": "#786fd3",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 211
  },
  "hsl": {
    "h": 245.4,
    "s": 53.191,
    "l": 63.137
  },
  "oklch": {
    "l": 0.59673,
    "c": 0.14847,
    "h": 285.1
  },
  "luminance": 0.20065
}

Semantic roles & 50–950 ramp

primary
#786FD3
secondary
#DEE1BD
accent
#C125B3
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#100D15
muted
#7F7E83

Preview Lab

Preview with #786FD3

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

Preview Lab → · Contrast checker → · Palette generator →

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