#786AEA#786AEA

#786AEA is a mid, vivid blue. Relative luminance 0.202; OKLCH L 60.3% C 0.186 H 284.3°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#786AEA
RGBrgb(120, 106, 234)
HSLhsl(247, 75%, 67%)
HSVhsv(247, 55%, 92%)
CMYKcmyk(48.7%, 54.7%, 0%, 8.2%)
CIE-LABlab(52.11, 38.12, -63.25)
CIE-LCHlch(52.11, 73.85, 301.08°)
OKLaboklab(60.27% 0.0459 -0.1806)
OKLCHoklch(60.27% 0.186 284.3)
XYZxyz(27.7466, 20.2403, 80.2707)
Luminance0.2024 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786AEA #DCEA6A
analogous
#6A9CEA #786AEA #B86AEA
triadic
#786AEA #EA786A #6AEA78
tetradic
#786AEA #EA6A9C #DCEA6A #6AEAB8
square
#786AEA #EA6A9C #DCEA6A #6AEAB8
split-complementary
#786AEA #EAB86A #9CEA6A
monochromatic
#2D1BBF #4734E2 #786AEA #A9A0F2 #D9D5F9

Accessibility & contrast

On white

4.16
#786AEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#786AEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786AEA
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786AEA#FFFFFF#000000##000000
##786AEA1.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#1C80EE
Deuteranopia (green-blind)
#1178E7
Tritanopia (blue-blind)
#4F87A0
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #786aea;
/* rgb */ color: rgb(120, 106, 234);
/* oklch */ color: oklch(60.3% 0.186 284.3);
Tailwind
colors: {
  custom: {
    50: '#a695f1',
    500: '#786aea',
    950: '#000000',
  },
}
SCSS
$custom: #786aea;
$custom-light: #a695f1;
$custom-dark: #000000;
JSON
{
  "hex": "#786aea",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 234
  },
  "hsl": {
    "h": 246.563,
    "s": 75.294,
    "l": 66.667
  },
  "oklch": {
    "l": 0.60268,
    "c": 0.18634,
    "h": 284.3
  },
  "luminance": 0.20242
}

Semantic roles & 50–950 ramp

primary
#786AEA
secondary
#E8EDC3
accent
#D70EC1
background
#FAF9FE
surface
#F4F1FD
border
#CECBD5
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786AEA

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

Preview Lab → · Contrast checker → · Palette generator →

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