#786DF1#786DF1

#786DF1 is a mid, vivid blue. Relative luminance 0.213; OKLCH L 61.3% C 0.192 H 282.9°. Best body text is #000000 at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#786DF1
RGBrgb(120, 109, 241)
HSLhsl(245, 83%, 69%)
HSVhsv(245, 55%, 95%)
CMYKcmyk(50.2%, 54.8%, 0%, 5.5%)
CIE-LABlab(53.25, 38.43, -65.31)
CIE-LCHlch(53.25, 75.78, 300.48°)
OKLaboklab(61.26% 0.0429 -0.1866)
OKLCHoklch(61.26% 0.192 282.9)
XYZxyz(29.0867, 21.2797, 85.7768)
Luminance0.2128 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DF1 #E6F16D
analogous
#6DA4F1 #786DF1 #BA6DF1
triadic
#786DF1 #F1786D #6DF178
tetradic
#786DF1 #F16DA4 #E6F16D #6DF1BA
square
#786DF1 #F16DA4 #E6F16D #6DF1BA
split-complementary
#786DF1 #F1BA6D #A4F16D
monochromatic
#2414D0 #4435EC #786DF1 #ACA5F6 #DFDDFC

Accessibility & contrast

On white

4.00
#786DF1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.26
#786DF1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786DF1
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786DF1#FFFFFF#000000##000000
##786DF11.004.005.265.26
#FFFFFF4.001.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#1884F5
Deuteranopia (green-blind)
#007BEE
Tritanopia (blue-blind)
#498BA5
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #786df1;
/* rgb */ color: rgb(120, 109, 241);
/* oklch */ color: oklch(61.3% 0.192 282.9);
Tailwind
colors: {
  custom: {
    50: '#a797f6',
    500: '#786df1',
    950: '#000000',
  },
}
SCSS
$custom: #786df1;
$custom-light: #a797f6;
$custom-dark: #000000;
JSON
{
  "hex": "#786df1",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 241
  },
  "hsl": {
    "h": 245,
    "s": 82.5,
    "l": 68.627
  },
  "oklch": {
    "l": 0.61264,
    "c": 0.19151,
    "h": 282.9
  },
  "luminance": 0.21281
}

Semantic roles & 50–950 ramp

primary
#786DF1
secondary
#EDF1C9
accent
#DF07CD
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786DF1

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

Preview Lab → · Contrast checker → · Palette generator →

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