#786CE2#786CE2

#786CE2 is a mid, vivid blue. Relative luminance 0.202; OKLCH L 60.1% C 0.173 H 284.5°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#786CE2
RGBrgb(120, 108, 226)
HSLhsl(246, 67%, 65%)
HSVhsv(246, 52%, 89%)
CMYKcmyk(46.9%, 52.2%, 0%, 11.4%)
CIE-LABlab(52.07, 34.59, -58.81)
CIE-LCHlch(52.07, 68.23, 300.46°)
OKLaboklab(60.08% 0.0434 -0.1675)
OKLCHoklch(60.08% 0.173 284.5)
XYZxyz(26.8317, 20.2079, 74.4235)
Luminance0.2021 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CE2 #D6E26C
analogous
#6C9BE2 #786CE2 #B36CE2
triadic
#786CE2 #E2786C #6CE278
tetradic
#786CE2 #E26C9B #D6E26C #6CE2B3
square
#786CE2 #E26C9B #D6E26C #6CE2B3
split-complementary
#786CE2 #E2B36C #9BE26C
monochromatic
#3123B1 #4939D8 #786CE2 #A79FEC #D6D2F6

Accessibility & contrast

On white

4.17
#786CE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#786CE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CE2
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CE2#FFFFFF#000000##000000
##786CE21.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3180E6
Deuteranopia (green-blind)
#2C79DF
Tritanopia (blue-blind)
#54869D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #786ce2;
/* rgb */ color: rgb(120, 108, 226);
/* oklch */ color: oklch(60.1% 0.173 284.5);
Tailwind
colors: {
  custom: {
    50: '#a596ec',
    500: '#786ce2',
    950: '#000000',
  },
}
SCSS
$custom: #786ce2;
$custom-light: #a596ec;
$custom-dark: #000000;
JSON
{
  "hex": "#786ce2",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 226
  },
  "hsl": {
    "h": 246.102,
    "s": 67.045,
    "l": 65.49
  },
  "oklch": {
    "l": 0.6008,
    "c": 0.17307,
    "h": 284.5
  },
  "luminance": 0.20209
}

Semantic roles & 50–950 ramp

primary
#786CE2
secondary
#E5E9C1
accent
#CF17BC
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786CE2

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

Preview Lab → · Contrast checker → · Palette generator →

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