#786FF1#786FF1

#786FF1 is a mid, vivid blue. Relative luminance 0.217; OKLCH L 61.6% C 0.189 H 282.5°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#786FF1
RGBrgb(120, 111, 241)
HSLhsl(244, 82%, 69%)
HSVhsv(244, 54%, 95%)
CMYKcmyk(50.2%, 53.9%, 0%, 5.5%)
CIE-LABlab(53.72, 37.26, -64.56)
CIE-LCHlch(53.72, 74.54, 299.99°)
OKLaboklab(61.61% 0.0407 -0.1844)
OKLCHoklch(61.61% 0.189 282.5)
XYZxyz(29.3025, 21.7112, 85.8487)
Luminance0.2171 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FF1 #E8F16F
analogous
#6FA7F1 #786FF1 #B96FF1
triadic
#786FF1 #F1786F #6FF178
tetradic
#786FF1 #F16FA7 #E8F16F #6FF1B9
square
#786FF1 #F16FA7 #E8F16F #6FF1B9
split-complementary
#786FF1 #F1B96F #A7F16F
monochromatic
#2114D1 #4437EC #786FF1 #ACA7F6 #E1DFFC

Accessibility & contrast

On white

3.93
#786FF1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#786FF1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FF1
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FF1#FFFFFF#000000##000000
##786FF11.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2285F5
Deuteranopia (green-blind)
#107CEE
Tritanopia (blue-blind)
#498CA5
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #786ff1;
/* rgb */ color: rgb(120, 111, 241);
/* oklch */ color: oklch(61.6% 0.189 282.5);
Tailwind
colors: {
  custom: {
    50: '#a798f6',
    500: '#786ff1',
    950: '#000000',
  },
}
SCSS
$custom: #786ff1;
$custom-light: #a798f6;
$custom-dark: #000000;
JSON
{
  "hex": "#786ff1",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 241
  },
  "hsl": {
    "h": 244.154,
    "s": 82.278,
    "l": 69.02
  },
  "oklch": {
    "l": 0.6161,
    "c": 0.18887,
    "h": 282.5
  },
  "luminance": 0.21713
}

Semantic roles & 50–950 ramp

primary
#786FF1
secondary
#EEF1CB
accent
#DF07D0
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786FF1

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

Preview Lab → · Contrast checker → · Palette generator →

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