#786EF5#786EF5

#786EF5 is a mid, vivid blue. Relative luminance 0.217; OKLCH L 61.7% C 0.195 H 282.4°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#786EF5
RGBrgb(120, 110, 245)
HSLhsl(244, 87%, 70%)
HSVhsv(244, 55%, 96%)
CMYKcmyk(51%, 55.1%, 0%, 3.9%)
CIE-LABlab(53.75, 39.04, -66.74)
CIE-LCHlch(53.75, 77.32, 300.32°)
OKLaboklab(61.71% 0.0419 -0.1909)
OKLCHoklch(61.71% 0.195 282.4)
XYZxyz(29.7981, 21.7358, 88.9938)
Luminance0.2174 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786EF5 #EBF56E
analogous
#6EA8F5 #786EF5 #BB6EF5
triadic
#786EF5 #F5786E #6EF578
tetradic
#786EF5 #F56EA8 #EBF56E #6EF5BB
square
#786EF5 #F56EA8 #EBF56E #6EF5BB
split-complementary
#786EF5 #F5BB6E #A8F56E
monochromatic
#1E0FDA #4335F1 #786EF5 #ADA7F9 #E3E1FD

Accessibility & contrast

On white

3.93
#786EF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#786EF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786EF5
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786EF5#FFFFFF#000000##000000
##786EF51.003.935.355.35
#FFFFFF3.931.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#1185FA
Deuteranopia (green-blind)
#007CF2
Tritanopia (blue-blind)
#468DA7
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #786ef5;
/* rgb */ color: rgb(120, 110, 245);
/* oklch */ color: oklch(61.7% 0.195 282.4);
Tailwind
colors: {
  custom: {
    50: '#a798f9',
    500: '#786ef5',
    950: '#000000',
  },
}
SCSS
$custom: #786ef5;
$custom-light: #a798f9;
$custom-dark: #000000;
JSON
{
  "hex": "#786ef5",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 245
  },
  "hsl": {
    "h": 244.444,
    "s": 87.097,
    "l": 69.608
  },
  "oklch": {
    "l": 0.61712,
    "c": 0.1954,
    "h": 282.4
  },
  "luminance": 0.21738
}

Semantic roles & 50–950 ramp

primary
#786EF5
secondary
#F0F3CC
accent
#E402D3
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786EF5

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

Preview Lab → · Contrast checker → · Palette generator →

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