#786AFB#786AFB

#786AFB is a mid, highly saturated blue. Relative luminance 0.213; OKLCH L 61.5% C 0.208 H 282.8°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#786AFB
RGBrgb(120, 106, 251)
HSLhsl(246, 95%, 70%)
HSVhsv(246, 58%, 98%)
CMYKcmyk(52.2%, 57.8%, 0%, 1.6%)
CIE-LABlab(53.24, 43.15, -70.90)
CIE-LCHlch(53.24, 83.00, 301.33°)
OKLaboklab(61.46% 0.046 -0.2031)
OKLCHoklch(61.46% 0.208 282.8)
XYZxyz(30.3070, 21.2644, 93.7556)
Luminance0.2127 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786AFB #EDFB6A
analogous
#6AA5FB #786AFB #C06AFB
triadic
#786AFB #FB786A #6AFB78
tetradic
#786AFB #FB6AA5 #EDFB6A #6AFBC0
square
#786AFB #FB6AA5 #EDFB6A #6AFBC0
split-complementary
#786AFB #FBC06A #A5FB6A
monochromatic
#1C06E4 #422EF9 #786AFB #AEA6FD #E4E1FE

Accessibility & contrast

On white

4.00
#786AFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#786AFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786AFB
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786AFB#FFFFFF#000000##000000
##786AFB1.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #786afb;
/* rgb */ color: rgb(120, 106, 251);
/* oklch */ color: oklch(61.5% 0.208 282.8);
Tailwind
colors: {
  custom: {
    50: '#a895fe',
    500: '#786afb',
    950: '#000000',
  },
}
SCSS
$custom: #786afb;
$custom-light: #a895fe;
$custom-dark: #000000;
JSON
{
  "hex": "#786afb",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 251
  },
  "hsl": {
    "h": 245.793,
    "s": 94.771,
    "l": 70
  },
  "oklch": {
    "l": 0.61463,
    "c": 0.20824,
    "h": 282.8
  },
  "luminance": 0.21266
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #786AFB

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

Preview Lab → · Contrast checker → · Palette generator →

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