#786CF2#786CF2

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

Color values

HEX#786CF2
RGBrgb(120, 108, 242)
HSLhsl(245, 84%, 69%)
HSVhsv(245, 55%, 95%)
CMYKcmyk(50.4%, 55.4%, 0%, 5.1%)
CIE-LABlab(53.09, 39.32, -66.13)
CIE-LCHlch(53.09, 76.94, 300.73°)
OKLaboklab(61.16% 0.0439 -0.1891)
OKLCHoklch(61.16% 0.194 283.1)
XYZxyz(29.1305, 21.1274, 86.5302)
Luminance0.2113 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CF2 #E6F26C
analogous
#6CA3F2 #786CF2 #BB6CF2
triadic
#786CF2 #F2786C #6CF278
tetradic
#786CF2 #F26CA3 #E6F26C #6CF2BB
square
#786CF2 #F26CA3 #E6F26C #6CF2BB
split-complementary
#786CF2 #F2BB6C #A3F26C
monochromatic
#2412D1 #4434ED #786CF2 #ACA4F7 #DFDCFC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##786CF2#FFFFFF#000000##000000
##786CF21.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)
#0E83F7
Deuteranopia (green-blind)
#007AEF
Tritanopia (blue-blind)
#488AA5
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #786cf2;
/* rgb */ color: rgb(120, 108, 242);
/* oklch */ color: oklch(61.2% 0.194 283.1);
Tailwind
colors: {
  custom: {
    50: '#a796f7',
    500: '#786cf2',
    950: '#000000',
  },
}
SCSS
$custom: #786cf2;
$custom-light: #a796f7;
$custom-dark: #000000;
JSON
{
  "hex": "#786cf2",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 242
  },
  "hsl": {
    "h": 245.373,
    "s": 83.75,
    "l": 68.627
  },
  "oklch": {
    "l": 0.61162,
    "c": 0.19412,
    "h": 283.1
  },
  "luminance": 0.21129
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #786CF2

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

Preview Lab → · Contrast checker → · Palette generator →

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