#786FC5#786FC5

#786FC5 is a mid, vivid blue. Relative luminance 0.194; OKLCH L 58.8% C 0.129 H 286.5°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#786FC5
RGBrgb(120, 111, 197)
HSLhsl(246, 43%, 60%)
HSVhsv(246, 44%, 77%)
CMYKcmyk(39.1%, 43.7%, 0%, 22.7%)
CIE-LABlab(51.14, 24.43, -43.82)
CIE-LCHlch(51.14, 50.17, 299.14°)
OKLaboklab(58.85% 0.0367 -0.1236)
OKLCHoklch(58.85% 0.129 286.5)
XYZxyz(23.5054, 19.3924, 55.3171)
Luminance0.1939 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FC5 #BCC56F
analogous
#6F91C5 #786FC5 #A36FC5
triadic
#786FC5 #C5786F #6FC578
tetradic
#786FC5 #C56F91 #BCC56F #6FC5A3
square
#786FC5 #C56F91 #BCC56F #6FC5A3
split-complementary
#786FC5 #C5A36F #91C56F
monochromatic
#3E3584 #5247B0 #786FC5 #A19BD7 #CAC6E8

Accessibility & contrast

On white

4.30
#786FC5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#786FC5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FC5
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FC5#FFFFFF#000000##000000
##786FC51.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#517CC8
Deuteranopia (green-blind)
#4F77C3
Tritanopia (blue-blind)
#638090
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #786fc5;
/* rgb */ color: rgb(120, 111, 197);
/* oklch */ color: oklch(58.8% 0.129 286.5);
Tailwind
colors: {
  custom: {
    50: '#a298d7',
    500: '#786fc5',
    950: '#000000',
  },
}
SCSS
$custom: #786fc5;
$custom-light: #a298d7;
$custom-dark: #000000;
JSON
{
  "hex": "#786fc5",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 197
  },
  "hsl": {
    "h": 246.279,
    "s": 42.574,
    "l": 60.392
  },
  "oklch": {
    "l": 0.58845,
    "c": 0.1289,
    "h": 286.5
  },
  "luminance": 0.19393
}

Semantic roles & 50–950 ramp

primary
#786FC5
secondary
#D5D8B7
accent
#B630A8
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #786FC5

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

Preview Lab → · Contrast checker → · Palette generator →

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