#786CEB#786CEB

#786CEB is a mid, vivid blue. Relative luminance 0.207; OKLCH L 60.7% C 0.185 H 283.7°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#786CEB
RGBrgb(120, 108, 235)
HSLhsl(246, 76%, 67%)
HSVhsv(246, 54%, 92%)
CMYKcmyk(48.9%, 54%, 0%, 7.8%)
CIE-LABlab(52.64, 37.24, -62.96)
CIE-LCHlch(52.64, 73.14, 300.61°)
OKLaboklab(60.68% 0.0438 -0.1797)
OKLCHoklch(60.68% 0.185 283.7)
XYZxyz(28.0992, 20.7149, 81.0989)
Luminance0.2072 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CEB #DFEB6C
analogous
#6CA0EB #786CEB #B76CEB
triadic
#786CEB #EB786C #6CEB78
tetradic
#786CEB #EB6CA0 #DFEB6C #6CEBB7
square
#786CEB #EB6CA0 #DFEB6C #6CEBB7
split-complementary
#786CEB #EBB76C #A0EB6C
monochromatic
#2A1AC2 #4736E4 #786CEB #A9A2F2 #DBD8FA

Accessibility & contrast

On white

4.08
#786CEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#786CEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CEB
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CEB#FFFFFF#000000##000000
##786CEB1.004.085.145.14
#FFFFFF4.081.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2282EF
Deuteranopia (green-blind)
#1779E8
Tritanopia (blue-blind)
#4E88A1
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #786ceb;
/* rgb */ color: rgb(120, 108, 235);
/* oklch */ color: oklch(60.7% 0.185 283.7);
Tailwind
colors: {
  custom: {
    50: '#a696f2',
    500: '#786ceb',
    950: '#000000',
  },
}
SCSS
$custom: #786ceb;
$custom-light: #a696f2;
$custom-dark: #000000;
JSON
{
  "hex": "#786ceb",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 235
  },
  "hsl": {
    "h": 245.669,
    "s": 76.048,
    "l": 67.255
  },
  "oklch": {
    "l": 0.60681,
    "c": 0.18499,
    "h": 283.7
  },
  "luminance": 0.20716
}

Semantic roles & 50–950 ramp

primary
#786CEB
secondary
#EAEDC5
accent
#D80DC5
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786CEB

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

Preview Lab → · Contrast checker → · Palette generator →

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