#786DD8#786DD8

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

Color values

HEX#786DD8
RGBrgb(120, 109, 216)
HSLhsl(246, 58%, 64%)
HSVhsv(246, 50%, 85%)
CMYKcmyk(44.4%, 49.5%, 0%, 15.3%)
CIE-LABlab(51.71, 31.07, -53.74)
CIE-LCHlch(51.71, 62.08, 300.04°)
OKLaboklab(59.61% 0.0415 -0.1526)
OKLCHoklch(59.61% 0.158 285.2)
XYZxyz(25.6054, 19.8871, 67.4419)
Luminance0.1989 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DD8 #CDD86D
analogous
#6D97D8 #786DD8 #AD6DD8
triadic
#786DD8 #D8786D #6DD878
tetradic
#786DD8 #D86D97 #CDD86D #6DD8AD
square
#786DD8 #D86D97 #CDD86D #6DD8AD
split-complementary
#786DD8 #D8AD6D #97D86D
monochromatic
#372BA0 #4B3DCB #786DD8 #A59DE5 #D1CEF2

Accessibility & contrast

On white

4.22
#786DD8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#786DD8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786DD8
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786DD8#FFFFFF#000000##000000
##786DD81.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E7EDC
Deuteranopia (green-blind)
#3B78D6
Tritanopia (blue-blind)
#5A8498
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #786dd8;
/* rgb */ color: rgb(120, 109, 216);
/* oklch */ color: oklch(59.6% 0.158 285.2);
Tailwind
colors: {
  custom: {
    50: '#a497e5',
    500: '#786dd8',
    950: '#000000',
  },
}
SCSS
$custom: #786dd8;
$custom-light: #a497e5;
$custom-dark: #000000;
JSON
{
  "hex": "#786dd8",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 216
  },
  "hsl": {
    "h": 246.168,
    "s": 57.838,
    "l": 63.725
  },
  "oklch": {
    "l": 0.59615,
    "c": 0.15819,
    "h": 285.2
  },
  "luminance": 0.19888
}

Semantic roles & 50–950 ramp

primary
#786DD8
secondary
#DFE3BE
accent
#C520B4
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786DD8

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

Preview Lab → · Contrast checker → · Palette generator →

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