#786FF2#786FF2

#786FF2 is a mid, vivid blue. Relative luminance 0.218; OKLCH L 61.7% C 0.190 H 282.4°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#786FF2
RGBrgb(120, 111, 242)
HSLhsl(244, 83%, 69%)
HSVhsv(244, 54%, 95%)
CMYKcmyk(50.4%, 54.1%, 0%, 5.1%)
CIE-LABlab(53.78, 37.56, -65.01)
CIE-LCHlch(53.78, 75.08, 300.01°)
OKLaboklab(61.68% 0.0408 -0.1858)
OKLCHoklch(61.68% 0.19 282.4)
XYZxyz(29.4523, 21.7711, 86.6375)
Luminance0.2177 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FF2 #E9F26F
analogous
#6FA8F2 #786FF2 #BA6FF2
triadic
#786FF2 #F2786F #6FF278
tetradic
#786FF2 #F26FA8 #E9F26F #6FF2BA
square
#786FF2 #F26FA8 #E9F26F #6FF2BA
split-complementary
#786FF2 #F2BA6F #A8F26F
monochromatic
#2013D4 #4337ED #786FF2 #ADA7F7 #E1DFFC

Accessibility & contrast

On white

3.92
#786FF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#786FF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FF2
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FF2#FFFFFF#000000##000000
##786FF21.003.925.355.35
#FFFFFF3.921.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#1F85F6
Deuteranopia (green-blind)
#0B7CEF
Tritanopia (blue-blind)
#488CA6
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #786ff2;
/* rgb */ color: rgb(120, 111, 242);
/* oklch */ color: oklch(61.7% 0.190 282.4);
Tailwind
colors: {
  custom: {
    50: '#a798f7',
    500: '#786ff2',
    950: '#000000',
  },
}
SCSS
$custom: #786ff2;
$custom-light: #a798f7;
$custom-dark: #000000;
JSON
{
  "hex": "#786ff2",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 242
  },
  "hsl": {
    "h": 244.122,
    "s": 83.439,
    "l": 69.216
  },
  "oklch": {
    "l": 0.61678,
    "c": 0.19018,
    "h": 282.4
  },
  "luminance": 0.21773
}

Semantic roles & 50–950 ramp

primary
#786FF2
secondary
#EFF1CB
accent
#E006D1
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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