#786CEA#786CEA

#786CEA is a mid, vivid blue. Relative luminance 0.207; OKLCH L 60.6% C 0.184 H 283.8°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#786CEA
RGBrgb(120, 108, 234)
HSLhsl(246, 75%, 67%)
HSVhsv(246, 54%, 92%)
CMYKcmyk(48.7%, 53.8%, 0%, 8.2%)
CIE-LABlab(52.57, 36.94, -62.50)
CIE-LCHlch(52.57, 72.60, 300.59°)
OKLaboklab(60.61% 0.0438 -0.1784)
OKLCHoklch(60.61% 0.184 283.8)
XYZxyz(27.9551, 20.6573, 80.3402)
Luminance0.2066 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CEA #DEEA6C
analogous
#6C9FEA #786CEA #B76CEA
triadic
#786CEA #EA786C #6CEA78
tetradic
#786CEA #EA6C9F #DEEA6C #6CEAB7
square
#786CEA #EA6C9F #DEEA6C #6CEAB7
split-complementary
#786CEA #EAB76C #9FEA6C
monochromatic
#2B1BC0 #4736E2 #786CEA #A9A2F2 #DAD7F9

Accessibility & contrast

On white

4.09
#786CEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#786CEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CEA
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CEA#FFFFFF#000000##000000
##786CEA1.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2481EE
Deuteranopia (green-blind)
#1A79E7
Tritanopia (blue-blind)
#4F88A1
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #786cea;
/* rgb */ color: rgb(120, 108, 234);
/* oklch */ color: oklch(60.6% 0.184 283.8);
Tailwind
colors: {
  custom: {
    50: '#a696f1',
    500: '#786cea',
    950: '#000000',
  },
}
SCSS
$custom: #786cea;
$custom-light: #a696f1;
$custom-dark: #000000;
JSON
{
  "hex": "#786cea",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 234
  },
  "hsl": {
    "h": 245.714,
    "s": 75,
    "l": 67.059
  },
  "oklch": {
    "l": 0.60614,
    "c": 0.18367,
    "h": 283.8
  },
  "luminance": 0.20659
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #786CEA

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

Preview Lab → · Contrast checker → · Palette generator →

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