#786FE7#786FE7

#786FE7 is a mid, vivid blue. Relative luminance 0.211; OKLCH L 60.9% C 0.176 H 283.3°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#786FE7
RGBrgb(120, 111, 231)
HSLhsl(245, 71%, 67%)
HSVhsv(245, 52%, 91%)
CMYKcmyk(48.1%, 51.9%, 0%, 9.4%)
CIE-LABlab(53.09, 34.29, -59.98)
CIE-LCHlch(53.09, 69.09, 299.75°)
OKLaboklab(60.94% 0.0403 -0.171)
OKLCHoklch(60.94% 0.176 283.3)
XYZxyz(27.8497, 21.1301, 78.1969)
Luminance0.2113 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FE7 #DEE76F
analogous
#6FA2E7 #786FE7 #B46FE7
triadic
#786FE7 #E7786F #6FE778
tetradic
#786FE7 #E76FA2 #DEE76F #6FE7B4
square
#786FE7 #E76FA2 #DEE76F #6FE7B4
split-complementary
#786FE7 #E7B46F #A2E76F
monochromatic
#2B1FBC #473BDE #786FE7 #A9A3F0 #DAD8F8

Accessibility & contrast

On white

4.02
#786FE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#786FE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FE7
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FE7#FFFFFF#000000##000000
##786FE71.004.025.235.23
#FFFFFF4.021.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3283EB
Deuteranopia (green-blind)
#2A7BE4
Tritanopia (blue-blind)
#5089A0
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #786fe7;
/* rgb */ color: rgb(120, 111, 231);
/* oklch */ color: oklch(60.9% 0.176 283.3);
Tailwind
colors: {
  custom: {
    50: '#a698ef',
    500: '#786fe7',
    950: '#000000',
  },
}
SCSS
$custom: #786fe7;
$custom-light: #a698ef;
$custom-dark: #000000;
JSON
{
  "hex": "#786fe7",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 231
  },
  "hsl": {
    "h": 244.5,
    "s": 71.429,
    "l": 67.059
  },
  "oklch": {
    "l": 0.60941,
    "c": 0.17564,
    "h": 283.3
  },
  "luminance": 0.21131
}

Semantic roles & 50–950 ramp

primary
#786FE7
secondary
#E9ECC6
accent
#D312C5
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786FE7

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

Preview Lab → · Contrast checker → · Palette generator →

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