#786AFA#786AFA

#786AFA is a mid, highly saturated blue. Relative luminance 0.212; OKLCH L 61.4% C 0.207 H 282.8°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#786AFA
RGBrgb(120, 106, 250)
HSLhsl(246, 94%, 70%)
HSVhsv(246, 58%, 98%)
CMYKcmyk(52%, 57.6%, 0%, 2%)
CIE-LABlab(53.17, 42.85, -70.45)
CIE-LCHlch(53.17, 82.46, 301.31°)
OKLaboklab(61.39% 0.046 -0.2018)
OKLCHoklch(61.39% 0.207 282.8)
XYZxyz(30.1498, 21.2016, 92.9276)
Luminance0.2120 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786AFA #ECFA6A
analogous
#6AA4FA #786AFA #C06AFA
triadic
#786AFA #FA786A #6AFA78
tetradic
#786AFA #FA6AA4 #ECFA6A #6AFAC0
square
#786AFA #FA6AA4 #ECFA6A #6AFAC0
split-complementary
#786AFA #FAC06A #A4FA6A
monochromatic
#1D08E2 #422FF8 #786AFA #AEA5FC #E3E0FE

Accessibility & contrast

On white

4.01
#786AFA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#786AFA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786AFA
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786AFA#FFFFFF#000000##000000
##786AFA1.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0084FF
Deuteranopia (green-blind)
#007AF7
Tritanopia (blue-blind)
#428CA8
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #786afa;
/* rgb */ color: rgb(120, 106, 250);
/* oklch */ color: oklch(61.4% 0.207 282.8);
Tailwind
colors: {
  custom: {
    50: '#a895fd',
    500: '#786afa',
    950: '#000000',
  },
}
SCSS
$custom: #786afa;
$custom-light: #a895fd;
$custom-dark: #000000;
JSON
{
  "hex": "#786afa",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 250
  },
  "hsl": {
    "h": 245.833,
    "s": 93.506,
    "l": 69.804
  },
  "oklch": {
    "l": 0.61391,
    "c": 0.20696,
    "h": 282.8
  },
  "luminance": 0.21203
}

Semantic roles & 50–950 ramp

primary
#786AFA
secondary
#F0F4CC
accent
#E600CF
background
#FBF9FF
surface
#F6F1FF
border
#D0CBD7
text
#110D18
muted
#807E86

Preview Lab

Preview with #786AFA

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

Preview Lab → · Contrast checker → · Palette generator →

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