#786FE1#786FE1

#786FE1 is a mid, vivid blue. Relative luminance 0.208; OKLCH L 60.6% C 0.168 H 283.8°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#786FE1
RGBrgb(120, 111, 225)
HSLhsl(245, 66%, 66%)
HSVhsv(245, 51%, 88%)
CMYKcmyk(46.7%, 50.7%, 0%, 11.8%)
CIE-LABlab(52.73, 32.52, -57.20)
CIE-LCHlch(52.73, 65.79, 299.62°)
OKLaboklab(60.55% 0.0399 -0.1628)
OKLCHoklch(60.55% 0.168 283.8)
XYZxyz(27.0167, 20.7969, 73.8102)
Luminance0.2080 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FE1 #D8E16F
analogous
#6F9FE1 #786FE1 #B16FE1
triadic
#786FE1 #E1786F #6FE178
tetradic
#786FE1 #E16F9F #D8E16F #6FE1B1
square
#786FE1 #E16F9F #D8E16F #6FE1B1
split-complementary
#786FE1 #E1B16F #9FE16F
monochromatic
#3025B1 #493CD6 #786FE1 #A7A2EC #D7D4F6

Accessibility & contrast

On white

4.07
#786FE1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#786FE1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FE1
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FE1#FFFFFF#000000##000000
##786FE11.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A81E5
Deuteranopia (green-blind)
#347ADE
Tritanopia (blue-blind)
#54889E
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #786fe1;
/* rgb */ color: rgb(120, 111, 225);
/* oklch */ color: oklch(60.6% 0.168 283.8);
Tailwind
colors: {
  custom: {
    50: '#a598eb',
    500: '#786fe1',
    950: '#000000',
  },
}
SCSS
$custom: #786fe1;
$custom-light: #a598eb;
$custom-dark: #000000;
JSON
{
  "hex": "#786fe1",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 225
  },
  "hsl": {
    "h": 244.737,
    "s": 65.517,
    "l": 65.882
  },
  "oklch": {
    "l": 0.6055,
    "c": 0.16759,
    "h": 283.8
  },
  "luminance": 0.20798
}

Semantic roles & 50–950 ramp

primary
#786FE1
secondary
#E6E9C3
accent
#CD18BF
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786FE1

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

Preview Lab → · Contrast checker → · Palette generator →

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