#786BEB#786BEB

#786BEB is a mid, vivid blue. Relative luminance 0.205; OKLCH L 60.5% C 0.186 H 283.9°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#786BEB
RGBrgb(120, 107, 235)
HSLhsl(246, 76%, 67%)
HSVhsv(246, 54%, 92%)
CMYKcmyk(48.9%, 54.5%, 0%, 7.8%)
CIE-LABlab(52.40, 37.83, -63.33)
CIE-LCHlch(52.40, 73.77, 300.85°)
OKLaboklab(60.51% 0.0449 -0.1808)
OKLCHoklch(60.51% 0.186 283.9)
XYZxyz(27.9943, 20.5052, 81.0640)
Luminance0.2051 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BEB #DEEB6B
analogous
#6B9EEB #786BEB #B86BEB
triadic
#786BEB #EB786B #6BEB78
tetradic
#786BEB #EB6B9E #DEEB6B #6BEBB8
square
#786BEB #EB6B9E #DEEB6B #6BEBB8
split-complementary
#786BEB #EBB86B #9EEB6B
monochromatic
#2B1AC1 #4735E4 #786BEB #A9A1F2 #DAD7FA

Accessibility & contrast

On white

4.12
#786BEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#786BEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786BEB
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BEB#FFFFFF#000000##000000
##786BEB1.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#1E81EF
Deuteranopia (green-blind)
#1279E8
Tritanopia (blue-blind)
#4E88A1
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #786beb;
/* rgb */ color: rgb(120, 107, 235);
/* oklch */ color: oklch(60.5% 0.186 283.9);
Tailwind
colors: {
  custom: {
    50: '#a695f2',
    500: '#786beb',
    950: '#000000',
  },
}
SCSS
$custom: #786beb;
$custom-light: #a695f2;
$custom-dark: #000000;
JSON
{
  "hex": "#786beb",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 235
  },
  "hsl": {
    "h": 246.094,
    "s": 76.19,
    "l": 67.059
  },
  "oklch": {
    "l": 0.60509,
    "c": 0.18631,
    "h": 283.9
  },
  "luminance": 0.20507
}

Semantic roles & 50–950 ramp

primary
#786BEB
secondary
#E9EDC5
accent
#D80DC4
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786BEB

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

Preview Lab → · Contrast checker → · Palette generator →

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