#786AF3#786AF3

#786AF3 is a mid, vivid blue. Relative luminance 0.208; OKLCH L 60.9% C 0.198 H 283.4°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#786AF3
RGBrgb(120, 106, 243)
HSLhsl(246, 85%, 68%)
HSVhsv(246, 56%, 95%)
CMYKcmyk(50.6%, 56.4%, 0%, 4.7%)
CIE-LABlab(52.70, 40.78, -67.32)
CIE-LCHlch(52.70, 78.71, 301.20°)
OKLaboklab(60.89% 0.046 -0.1926)
OKLCHoklch(60.89% 0.198 283.4)
XYZxyz(29.0725, 20.7706, 87.2539)
Luminance0.2077 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786AF3 #E5F36A
analogous
#6AA0F3 #786AF3 #BC6AF3
triadic
#786AF3 #F3786A #6AF378
tetradic
#786AF3 #F36AA0 #E5F36A #6AF3BC
square
#786AF3 #F36AA0 #E5F36A #6AF3BC
split-complementary
#786AF3 #F3BC6A #A0F36A
monochromatic
#2511D2 #4531EE #786AF3 #ABA3F8 #DFDBFC

Accessibility & contrast

On white

4.07
#786AF3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#786AF3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786AF3
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786AF3#FFFFFF#000000##000000
##786AF31.004.075.155.15
#FFFFFF4.071.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0082F8
Deuteranopia (green-blind)
#0079F0
Tritanopia (blue-blind)
#4889A4
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #786af3;
/* rgb */ color: rgb(120, 106, 243);
/* oklch */ color: oklch(60.9% 0.198 283.4);
Tailwind
colors: {
  custom: {
    50: '#a795f8',
    500: '#786af3',
    950: '#000000',
  },
}
SCSS
$custom: #786af3;
$custom-light: #a795f8;
$custom-dark: #000000;
JSON
{
  "hex": "#786af3",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 243
  },
  "hsl": {
    "h": 246.131,
    "s": 85.093,
    "l": 68.431
  },
  "oklch": {
    "l": 0.60893,
    "c": 0.19802,
    "h": 283.4
  },
  "luminance": 0.20772
}

Semantic roles & 50–950 ramp

primary
#786AF3
secondary
#EDF1C8
accent
#E204CB
background
#FAF9FF
surface
#F4F1FF
border
#CECBD7
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786AF3

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

Preview Lab → · Contrast checker → · Palette generator →

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