#786CE3#786CE3

#786CE3 is a mid, vivid blue. Relative luminance 0.203; OKLCH L 60.1% C 0.174 H 284.4°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#786CE3
RGBrgb(120, 108, 227)
HSLhsl(246, 68%, 66%)
HSVhsv(246, 52%, 89%)
CMYKcmyk(47.1%, 52.4%, 0%, 11%)
CIE-LABlab(52.13, 34.88, -59.27)
CIE-LCHlch(52.13, 68.78, 300.48°)
OKLaboklab(60.15% 0.0435 -0.1689)
OKLCHoklch(60.15% 0.174 284.4)
XYZxyz(26.9693, 20.2630, 75.1482)
Luminance0.2026 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CE3 #D7E36C
analogous
#6C9CE3 #786CE3 #B36CE3
triadic
#786CE3 #E3786C #6CE378
tetradic
#786CE3 #E36C9C #D7E36C #6CE3B3
square
#786CE3 #E36C9C #D7E36C #6CE3B3
split-complementary
#786CE3 #E3B36C #9CE36C
monochromatic
#3122B3 #4939D9 #786CE3 #A79FED #D6D3F7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##786CE3#FFFFFF#000000##000000
##786CE31.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)
#3080E7
Deuteranopia (green-blind)
#2A79E0
Tritanopia (blue-blind)
#53869D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #786ce3;
/* rgb */ color: rgb(120, 108, 227);
/* oklch */ color: oklch(60.1% 0.174 284.4);
Tailwind
colors: {
  custom: {
    50: '#a596ec',
    500: '#786ce3',
    950: '#000000',
  },
}
SCSS
$custom: #786ce3;
$custom-light: #a596ec;
$custom-dark: #000000;
JSON
{
  "hex": "#786ce3",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 227
  },
  "hsl": {
    "h": 246.05,
    "s": 68,
    "l": 65.686
  },
  "oklch": {
    "l": 0.60146,
    "c": 0.1744,
    "h": 284.4
  },
  "luminance": 0.20264
}

Semantic roles & 50–950 ramp

primary
#786CE3
secondary
#E5E9C2
accent
#D016BD
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786CE3

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

Preview Lab → · Contrast checker → · Palette generator →

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