#786FEA#786FEA

#786FEA is a mid, vivid blue. Relative luminance 0.213; OKLCH L 61.1% C 0.180 H 283.0°. Best body text is #000000 at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#786FEA
RGBrgb(120, 111, 234)
HSLhsl(244, 75%, 68%)
HSVhsv(244, 53%, 92%)
CMYKcmyk(48.7%, 52.6%, 0%, 8.2%)
CIE-LABlab(53.28, 35.18, -61.36)
CIE-LCHlch(53.28, 70.73, 299.82°)
OKLaboklab(61.14% 0.0404 -0.175)
OKLCHoklch(61.14% 0.18 283)
XYZxyz(28.2770, 21.3010, 80.4475)
Luminance0.2130 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FEA #E1EA6F
analogous
#6FA4EA #786FEA #B56FEA
triadic
#786FEA #EA786F #6FEA78
tetradic
#786FEA #EA6FA4 #E1EA6F #6FEAB5
square
#786FEA #EA6FA4 #E1EA6F #6FEAB5
split-complementary
#786FEA #EAB56F #A4EA6F
monochromatic
#281CC2 #463AE2 #786FEA #AAA4F2 #DCDAFA

Accessibility & contrast

On white

3.99
#786FEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.26
#786FEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FEA
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FEA#FFFFFF#000000##000000
##786FEA1.003.995.265.26
#FFFFFF3.991.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E83EE
Deuteranopia (green-blind)
#257BE7
Tritanopia (blue-blind)
#4E8AA2
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #786fea;
/* rgb */ color: rgb(120, 111, 234);
/* oklch */ color: oklch(61.1% 0.180 283.0);
Tailwind
colors: {
  custom: {
    50: '#a698f1',
    500: '#786fea',
    950: '#000000',
  },
}
SCSS
$custom: #786fea;
$custom-light: #a698f1;
$custom-dark: #000000;
JSON
{
  "hex": "#786fea",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 234
  },
  "hsl": {
    "h": 244.39,
    "s": 74.545,
    "l": 67.647
  },
  "oklch": {
    "l": 0.61139,
    "c": 0.17964,
    "h": 283
  },
  "luminance": 0.21302
}

Semantic roles & 50–950 ramp

primary
#786FEA
secondary
#EBEDC7
accent
#D70FC8
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786FEA

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

Preview Lab → · Contrast checker → · Palette generator →

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