#786FDD#786FDD

#786FDD is a mid, vivid blue. Relative luminance 0.206; OKLCH L 60.3% C 0.162 H 284.1°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#786FDD
RGBrgb(120, 111, 221)
HSLhsl(245, 62%, 65%)
HSVhsv(245, 50%, 87%)
CMYKcmyk(45.7%, 49.8%, 0%, 13.3%)
CIE-LABlab(52.49, 31.34, -55.32)
CIE-LCHlch(52.49, 63.59, 299.53°)
OKLaboklab(60.3% 0.0396 -0.1573)
OKLCHoklch(60.3% 0.162 284.1)
XYZxyz(26.4775, 20.5812, 70.9700)
Luminance0.2058 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FDD #D4DD6F
analogous
#6F9DDD #786FDD #AF6FDD
triadic
#786FDD #DD786F #6FDD78
tetradic
#786FDD #DD6F9D #D4DD6F #6FDDAF
square
#786FDD #DD6F9D #D4DD6F #6FDDAF
split-complementary
#786FDD #DDAF6F #9DDD6F
monochromatic
#3328AA #4A3DD1 #786FDD #A6A1E9 #D5D2F4

Accessibility & contrast

On white

4.10
#786FDD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#786FDD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FDD
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FDD#FFFFFF#000000##000000
##786FDD1.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E81E1
Deuteranopia (green-blind)
#397ADB
Tritanopia (blue-blind)
#57869C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #786fdd;
/* rgb */ color: rgb(120, 111, 221);
/* oklch */ color: oklch(60.3% 0.162 284.1);
Tailwind
colors: {
  custom: {
    50: '#a598e8',
    500: '#786fdd',
    950: '#000000',
  },
}
SCSS
$custom: #786fdd;
$custom-light: #a598e8;
$custom-dark: #000000;
JSON
{
  "hex": "#786fdd",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 221
  },
  "hsl": {
    "h": 244.909,
    "s": 61.798,
    "l": 65.098
  },
  "oklch": {
    "l": 0.60295,
    "c": 0.16218,
    "h": 284.1
  },
  "luminance": 0.20582
}

Semantic roles & 50–950 ramp

primary
#786FDD
secondary
#E3E7C1
accent
#CA1CBB
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786FDD

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

Preview Lab → · Contrast checker → · Palette generator →

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