#786FE3#786FE3

#786FE3 is a mid, vivid blue. Relative luminance 0.209; OKLCH L 60.7% C 0.170 H 283.6°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#786FE3
RGBrgb(120, 111, 227)
HSLhsl(245, 67%, 66%)
HSVhsv(245, 51%, 89%)
CMYKcmyk(47.1%, 51.1%, 0%, 11%)
CIE-LABlab(52.85, 33.11, -58.13)
CIE-LCHlch(52.85, 66.89, 299.66°)
OKLaboklab(60.68% 0.04 -0.1655)
OKLCHoklch(60.68% 0.17 283.6)
XYZxyz(27.2912, 20.9067, 75.2555)
Luminance0.2091 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FE3 #DAE36F
analogous
#6FA0E3 #786FE3 #B26FE3
triadic
#786FE3 #E3786F #6FE378
tetradic
#786FE3 #E36FA0 #DAE36F #6FE3B2
square
#786FE3 #E36FA0 #DAE36F #6FE3B2
split-complementary
#786FE3 #E3B26F #A0E36F
monochromatic
#2E23B5 #483CD9 #786FE3 #A8A2ED #D8D5F7

Accessibility & contrast

On white

4.05
#786FE3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#786FE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FE3
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FE3#FFFFFF#000000##000000
##786FE31.004.055.185.18
#FFFFFF4.051.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3782E7
Deuteranopia (green-blind)
#317AE0
Tritanopia (blue-blind)
#53889E
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #786fe3;
/* rgb */ color: rgb(120, 111, 227);
/* oklch */ color: oklch(60.7% 0.170 283.6);
Tailwind
colors: {
  custom: {
    50: '#a598ec',
    500: '#786fe3',
    950: '#000000',
  },
}
SCSS
$custom: #786fe3;
$custom-light: #a598ec;
$custom-dark: #000000;
JSON
{
  "hex": "#786fe3",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 227
  },
  "hsl": {
    "h": 244.655,
    "s": 67.442,
    "l": 66.275
  },
  "oklch": {
    "l": 0.60679,
    "c": 0.17029,
    "h": 283.6
  },
  "luminance": 0.20908
}

Semantic roles & 50–950 ramp

primary
#786FE3
secondary
#E7EAC4
accent
#CF16C1
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786FE3

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

Preview Lab → · Contrast checker → · Palette generator →

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