#786DD4#786DD4

#786DD4 is a mid, vivid blue. Relative luminance 0.197; OKLCH L 59.4% C 0.153 H 285.6°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#786DD4
RGBrgb(120, 109, 212)
HSLhsl(246, 54%, 63%)
HSVhsv(246, 49%, 83%)
CMYKcmyk(43.4%, 48.6%, 0%, 16.9%)
CIE-LABlab(51.48, 29.92, -51.85)
CIE-LCHlch(51.48, 59.86, 299.98°)
OKLaboklab(59.37% 0.0411 -0.1471)
OKLCHoklch(59.37% 0.153 285.6)
XYZxyz(25.0946, 19.6828, 64.7515)
Luminance0.1968 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DD4 #C9D46D
analogous
#6D95D4 #786DD4 #AB6DD4
triadic
#786DD4 #D4786D #6DD478
tetradic
#786DD4 #D46D95 #C9D46D #6DD4AB
square
#786DD4 #D46D95 #C9D46D #6DD4AB
split-complementary
#786DD4 #D4AB6D #95D46D
monochromatic
#392D99 #4C3EC6 #786DD4 #A49CE2 #CFCCF0

Accessibility & contrast

On white

4.25
#786DD4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#786DD4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786DD4
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786DD4#FFFFFF#000000##000000
##786DD41.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#427ED8
Deuteranopia (green-blind)
#4078D2
Tritanopia (blue-blind)
#5C8296
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #786dd4;
/* rgb */ color: rgb(120, 109, 212);
/* oklch */ color: oklch(59.4% 0.153 285.6);
Tailwind
colors: {
  custom: {
    50: '#a497e2',
    500: '#786dd4',
    950: '#000000',
  },
}
SCSS
$custom: #786dd4;
$custom-light: #a497e2;
$custom-dark: #000000;
JSON
{
  "hex": "#786dd4",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 212
  },
  "hsl": {
    "h": 246.408,
    "s": 54.497,
    "l": 62.941
  },
  "oklch": {
    "l": 0.59365,
    "c": 0.15273,
    "h": 285.6
  },
  "luminance": 0.19684
}

Semantic roles & 50–950 ramp

primary
#786DD4
secondary
#DDE1BC
accent
#C224B1
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#100D15
muted
#7F7E83

Preview Lab

Preview with #786DD4

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

Preview Lab → · Contrast checker → · Palette generator →

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