#786BEA#786BEA

#786BEA is a mid, vivid blue. Relative luminance 0.204; OKLCH L 60.4% C 0.185 H 284.0°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#786BEA
RGBrgb(120, 107, 234)
HSLhsl(246, 75%, 67%)
HSVhsv(246, 54%, 92%)
CMYKcmyk(48.7%, 54.3%, 0%, 8.2%)
CIE-LABlab(52.34, 37.53, -62.87)
CIE-LCHlch(52.34, 73.22, 300.83°)
OKLaboklab(60.44% 0.0449 -0.1795)
OKLCHoklch(60.44% 0.185 284)
XYZxyz(27.8503, 20.4476, 80.3052)
Luminance0.2045 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BEA #DDEA6B
analogous
#6B9EEA #786BEA #B86BEA
triadic
#786BEA #EA786B #6BEA78
tetradic
#786BEA #EA6B9E #DDEA6B #6BEAB8
square
#786BEA #EA6B9E #DDEA6B #6BEAB8
split-complementary
#786BEA #EAB86B #9EEA6B
monochromatic
#2C1BBF #4735E2 #786BEA #A9A1F2 #DAD6F9

Accessibility & contrast

On white

4.13
#786BEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#786BEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786BEA
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BEA#FFFFFF#000000##000000
##786BEA1.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2081EE
Deuteranopia (green-blind)
#1679E7
Tritanopia (blue-blind)
#4F87A0
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #786bea;
/* rgb */ color: rgb(120, 107, 234);
/* oklch */ color: oklch(60.4% 0.185 284.0);
Tailwind
colors: {
  custom: {
    50: '#a695f1',
    500: '#786bea',
    950: '#000000',
  },
}
SCSS
$custom: #786bea;
$custom-light: #a695f1;
$custom-dark: #000000;
JSON
{
  "hex": "#786bea",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 234
  },
  "hsl": {
    "h": 246.142,
    "s": 75.148,
    "l": 66.863
  },
  "oklch": {
    "l": 0.6044,
    "c": 0.18501,
    "h": 284
  },
  "luminance": 0.20449
}

Semantic roles & 50–950 ramp

primary
#786BEA
secondary
#E9EDC4
accent
#D70EC3
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786BEA

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

Preview Lab → · Contrast checker → · Palette generator →

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