#786AE3#786AE3

#786AE3 is a mid, vivid blue. Relative luminance 0.198; OKLCH L 59.8% C 0.177 H 285.0°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#786AE3
RGBrgb(120, 106, 227)
HSLhsl(247, 68%, 65%)
HSVhsv(247, 53%, 89%)
CMYKcmyk(47.1%, 53.3%, 0%, 11%)
CIE-LABlab(51.66, 36.06, -60.03)
CIE-LCHlch(51.66, 70.03, 300.99°)
OKLaboklab(59.8% 0.0457 -0.1711)
OKLCHoklch(59.8% 0.177 285)
XYZxyz(26.7608, 19.8459, 75.0787)
Luminance0.1985 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786AE3 #D5E36A
analogous
#6A98E3 #786AE3 #B46AE3
triadic
#786AE3 #E3786A #6AE378
tetradic
#786AE3 #E36A98 #D5E36A #6AE3B4
square
#786AE3 #E36A98 #D5E36A #6AE3B4
split-complementary
#786AE3 #E3B46A #98E36A
monochromatic
#3221B1 #4936D9 #786AE3 #A79EED #D5D1F6

Accessibility & contrast

On white

4.23
#786AE3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#786AE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786AE3
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786AE3#FFFFFF#000000##000000
##786AE31.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A7FE7
Deuteranopia (green-blind)
#2477E0
Tritanopia (blue-blind)
#53859C
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #786ae3;
/* rgb */ color: rgb(120, 106, 227);
/* oklch */ color: oklch(59.8% 0.177 285.0);
Tailwind
colors: {
  custom: {
    50: '#a695ec',
    500: '#786ae3',
    950: '#000000',
  },
}
SCSS
$custom: #786ae3;
$custom-light: #a695ec;
$custom-dark: #000000;
JSON
{
  "hex": "#786ae3",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 227
  },
  "hsl": {
    "h": 246.942,
    "s": 68.362,
    "l": 65.294
  },
  "oklch": {
    "l": 0.59795,
    "c": 0.17714,
    "h": 285
  },
  "luminance": 0.19847
}

Semantic roles & 50–950 ramp

primary
#786AE3
secondary
#E4E9C0
accent
#D015BB
background
#FAF9FE
surface
#F4F1FD
border
#CECBD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786AE3

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

Preview Lab → · Contrast checker → · Palette generator →

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