#786FE2#786FE2

#786FE2 is a mid, vivid blue. Relative luminance 0.209; OKLCH L 60.6% C 0.169 H 283.7°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#786FE2
RGBrgb(120, 111, 226)
HSLhsl(245, 66%, 66%)
HSVhsv(245, 51%, 89%)
CMYKcmyk(46.9%, 50.9%, 0%, 11.4%)
CIE-LABlab(52.79, 32.81, -57.66)
CIE-LCHlch(52.79, 66.34, 299.64°)
OKLaboklab(60.61% 0.04 -0.1641)
OKLCHoklch(60.61% 0.169 283.7)
XYZxyz(27.1536, 20.8516, 74.5308)
Luminance0.2085 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FE2 #D9E26F
analogous
#6F9FE2 #786FE2 #B16FE2
triadic
#786FE2 #E2786F #6FE278
tetradic
#786FE2 #E26F9F #D9E26F #6FE2B1
square
#786FE2 #E26F9F #D9E26F #6FE2B1
split-complementary
#786FE2 #E2B16F #9FE26F
monochromatic
#2F24B3 #483CD8 #786FE2 #A8A2EC #D8D5F7

Accessibility & contrast

On white

4.06
#786FE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#786FE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FE2
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FE2#FFFFFF#000000##000000
##786FE21.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3882E6
Deuteranopia (green-blind)
#327ADF
Tritanopia (blue-blind)
#54889E
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #786fe2;
/* rgb */ color: rgb(120, 111, 226);
/* oklch */ color: oklch(60.6% 0.169 283.7);
Tailwind
colors: {
  custom: {
    50: '#a598ec',
    500: '#786fe2',
    950: '#000000',
  },
}
SCSS
$custom: #786fe2;
$custom-light: #a598ec;
$custom-dark: #000000;
JSON
{
  "hex": "#786fe2",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 226
  },
  "hsl": {
    "h": 244.696,
    "s": 66.474,
    "l": 66.078
  },
  "oklch": {
    "l": 0.60615,
    "c": 0.16894,
    "h": 283.7
  },
  "luminance": 0.20853
}

Semantic roles & 50–950 ramp

primary
#786FE2
secondary
#E6E9C4
accent
#CE17C0
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786FE2

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

Preview Lab → · Contrast checker → · Palette generator →

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