#786FD4#786FD4

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

Color values

HEX#786FD4
RGBrgb(120, 111, 212)
HSLhsl(245, 54%, 63%)
HSVhsv(245, 48%, 83%)
CMYKcmyk(43.4%, 47.6%, 0%, 16.9%)
CIE-LABlab(51.97, 28.72, -51.07)
CIE-LCHlch(51.97, 58.59, 299.35°)
OKLaboklab(59.73% 0.0387 -0.1448)
OKLCHoklch(59.73% 0.15 285)
XYZxyz(25.3104, 20.1144, 64.8234)
Luminance0.2011 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FD4 #CBD46F
analogous
#6F98D4 #786FD4 #AB6FD4
triadic
#786FD4 #D4786F #6FD478
tetradic
#786FD4 #D46F98 #CBD46F #6FD4AB
square
#786FD4 #D46F98 #CBD46F #6FD4AB
split-complementary
#786FD4 #D4AB6F #98D46F
monochromatic
#382E9A #4C40C6 #786FD4 #A49EE2 #D0CDF0

Accessibility & contrast

On white

4.18
#786FD4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#786FD4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FD4
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FD4#FFFFFF#000000##000000
##786FD41.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#467FD8
Deuteranopia (green-blind)
#4379D2
Tritanopia (blue-blind)
#5C8497
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #786fd4;
/* rgb */ color: rgb(120, 111, 212);
/* oklch */ color: oklch(59.7% 0.150 285.0);
Tailwind
colors: {
  custom: {
    50: '#a498e2',
    500: '#786fd4',
    950: '#000000',
  },
}
SCSS
$custom: #786fd4;
$custom-light: #a498e2;
$custom-dark: #000000;
JSON
{
  "hex": "#786fd4",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 212
  },
  "hsl": {
    "h": 245.347,
    "s": 54.011,
    "l": 63.333
  },
  "oklch": {
    "l": 0.59734,
    "c": 0.14986,
    "h": 285
  },
  "luminance": 0.20115
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #786FD4

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

Preview Lab → · Contrast checker → · Palette generator →

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