#786BE2#786BE2

#786BE2 is a mid, vivid blue. Relative luminance 0.200; OKLCH L 59.9% C 0.174 H 284.8°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#786BE2
RGBrgb(120, 107, 226)
HSLhsl(247, 67%, 65%)
HSVhsv(247, 53%, 89%)
CMYKcmyk(46.9%, 52.7%, 0%, 11.4%)
CIE-LABlab(51.84, 35.18, -59.19)
CIE-LCHlch(51.84, 68.86, 300.72°)
OKLaboklab(59.9% 0.0445 -0.1687)
OKLCHoklch(59.9% 0.174 284.8)
XYZxyz(26.7268, 19.9982, 74.3885)
Luminance0.2000 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BE2 #D5E26B
analogous
#6B99E2 #786BE2 #B46BE2
triadic
#786BE2 #E2786B #6BE278
tetradic
#786BE2 #E26B99 #D5E26B #6BE2B4
square
#786BE2 #E26B99 #D5E26B #6BE2B4
split-complementary
#786BE2 #E2B46B #99E26B
monochromatic
#3223B0 #4938D8 #786BE2 #A79EEC #D5D1F6

Accessibility & contrast

On white

4.20
#786BE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#786BE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786BE2
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BE2#FFFFFF#000000##000000
##786BE21.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E7FE6
Deuteranopia (green-blind)
#2978DF
Tritanopia (blue-blind)
#54859C
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #786be2;
/* rgb */ color: rgb(120, 107, 226);
/* oklch */ color: oklch(59.9% 0.174 284.8);
Tailwind
colors: {
  custom: {
    50: '#a595ec',
    500: '#786be2',
    950: '#000000',
  },
}
SCSS
$custom: #786be2;
$custom-light: #a595ec;
$custom-dark: #000000;
JSON
{
  "hex": "#786be2",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 226
  },
  "hsl": {
    "h": 246.555,
    "s": 67.232,
    "l": 65.294
  },
  "oklch": {
    "l": 0.59904,
    "c": 0.17444,
    "h": 284.8
  },
  "luminance": 0.19999
}

Semantic roles & 50–950 ramp

primary
#786BE2
secondary
#E4E8C0
accent
#CF16BB
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786BE2

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

Preview Lab → · Contrast checker → · Palette generator →

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