#786FF5#786FF5

#786FF5 is a mid, vivid blue. Relative luminance 0.220; OKLCH L 61.9% C 0.194 H 282.1°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#786FF5
RGBrgb(120, 111, 245)
HSLhsl(244, 87%, 70%)
HSVhsv(244, 55%, 96%)
CMYKcmyk(51%, 54.7%, 0%, 3.9%)
CIE-LABlab(53.98, 38.45, -66.37)
CIE-LCHlch(53.98, 76.71, 300.09°)
OKLaboklab(61.88% 0.0408 -0.1897)
OKLCHoklch(61.88% 0.194 282.1)
XYZxyz(29.9066, 21.9528, 89.0300)
Luminance0.2195 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FF5 #ECF56F
analogous
#6FA9F5 #786FF5 #BB6FF5
triadic
#786FF5 #F5786F #6FF578
tetradic
#786FF5 #F56FA9 #ECF56F #6FF5BB
square
#786FF5 #F56FA9 #ECF56F #6FF5BB
split-complementary
#786FF5 #F5BB6F #A9F56F
monochromatic
#1D0FDA #4236F1 #786FF5 #AEA8F9 #E3E1FD

Accessibility & contrast

On white

3.90
#786FF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.39
#786FF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FF5
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FF5#FFFFFF#000000##000000
##786FF51.003.905.395.39
#FFFFFF3.901.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#1886FA
Deuteranopia (green-blind)
#007CF2
Tritanopia (blue-blind)
#458DA7
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #786ff5;
/* rgb */ color: rgb(120, 111, 245);
/* oklch */ color: oklch(61.9% 0.194 282.1);
Tailwind
colors: {
  custom: {
    50: '#a798f9',
    500: '#786ff5',
    950: '#000000',
  },
}
SCSS
$custom: #786ff5;
$custom-light: #a798f9;
$custom-dark: #000000;
JSON
{
  "hex": "#786ff5",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 245
  },
  "hsl": {
    "h": 244.03,
    "s": 87.013,
    "l": 69.804
  },
  "oklch": {
    "l": 0.61883,
    "c": 0.19409,
    "h": 282.1
  },
  "luminance": 0.21955
}

Semantic roles & 50–950 ramp

primary
#786FF5
secondary
#F0F3CD
accent
#E402D4
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786FF5

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

Preview Lab → · Contrast checker → · Palette generator →

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