#786AF2#786AF2

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

Color values

HEX#786AF2
RGBrgb(120, 106, 242)
HSLhsl(246, 84%, 68%)
HSVhsv(246, 56%, 95%)
CMYKcmyk(50.4%, 56.2%, 0%, 5.1%)
CIE-LABlab(52.63, 40.48, -66.87)
CIE-LCHlch(52.63, 78.17, 301.19°)
OKLaboklab(60.82% 0.046 -0.1913)
OKLCHoklch(60.82% 0.197 283.5)
XYZxyz(28.9219, 20.7104, 86.4607)
Luminance0.2071 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786AF2 #E4F26A
analogous
#6AA0F2 #786AF2 #BC6AF2
triadic
#786AF2 #F2786A #6AF278
tetradic
#786AF2 #F26AA0 #E4F26A #6AF2BC
square
#786AF2 #F26AA0 #E4F26A #6AF2BC
split-complementary
#786AF2 #F2BC6A #A0F26A
monochromatic
#2612CF #4532ED #786AF2 #ABA2F7 #DEDBFC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##786AF2#FFFFFF#000000##000000
##786AF21.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)
#0082F7
Deuteranopia (green-blind)
#0079EF
Tritanopia (blue-blind)
#4989A4
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #786af2;
/* rgb */ color: rgb(120, 106, 242);
/* oklch */ color: oklch(60.8% 0.197 283.5);
Tailwind
colors: {
  custom: {
    50: '#a795f7',
    500: '#786af2',
    950: '#000000',
  },
}
SCSS
$custom: #786af2;
$custom-light: #a795f7;
$custom-dark: #000000;
JSON
{
  "hex": "#786af2",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 242
  },
  "hsl": {
    "h": 246.176,
    "s": 83.951,
    "l": 68.235
  },
  "oklch": {
    "l": 0.60823,
    "c": 0.19672,
    "h": 283.5
  },
  "luminance": 0.20712
}

Semantic roles & 50–950 ramp

primary
#786AF2
secondary
#ECF1C7
accent
#E005CA
background
#FAF9FF
surface
#F4F1FF
border
#CECBD7
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786AF2

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

Preview Lab → · Contrast checker → · Palette generator →

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