#786DDC#786DDC

#786DDC is a mid, vivid blue. Relative luminance 0.201; OKLCH L 59.9% C 0.164 H 284.8°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#786DDC
RGBrgb(120, 109, 220)
HSLhsl(246, 61%, 65%)
HSVhsv(246, 50%, 86%)
CMYKcmyk(45.5%, 50.5%, 0%, 13.7%)
CIE-LABlab(51.95, 32.24, -55.63)
CIE-LCHlch(51.95, 64.30, 300.09°)
OKLaboklab(59.87% 0.0418 -0.1582)
OKLCHoklch(59.87% 0.164 284.8)
XYZxyz(26.1289, 20.0965, 70.1985)
Luminance0.2010 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DDC #D1DC6D
analogous
#6D9ADC #786DDC #B06DDC
triadic
#786DDC #DC786D #6DDC78
tetradic
#786DDC #DC6D9A #D1DC6D #6DDCB0
square
#786DDC #DC6D9A #D1DC6D #6DDCB0
split-complementary
#786DDC #DCB06D #9ADC6D
monochromatic
#3528A7 #4A3CD0 #786DDC #A69EE8 #D3D0F4

Accessibility & contrast

On white

4.18
#786DDC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#786DDC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786DDC
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786DDC#FFFFFF#000000##000000
##786DDC1.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A7FE0
Deuteranopia (green-blind)
#3678DA
Tritanopia (blue-blind)
#57859A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #786ddc;
/* rgb */ color: rgb(120, 109, 220);
/* oklch */ color: oklch(59.9% 0.164 284.8);
Tailwind
colors: {
  custom: {
    50: '#a597e7',
    500: '#786ddc',
    950: '#000000',
  },
}
SCSS
$custom: #786ddc;
$custom-light: #a597e7;
$custom-dark: #000000;
JSON
{
  "hex": "#786ddc",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 220
  },
  "hsl": {
    "h": 245.946,
    "s": 61.326,
    "l": 64.51
  },
  "oklch": {
    "l": 0.59869,
    "c": 0.16362,
    "h": 284.8
  },
  "luminance": 0.20098
}

Semantic roles & 50–950 ramp

primary
#786DDC
secondary
#E2E6BF
accent
#C91CB8
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786DDC

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

Preview Lab → · Contrast checker → · Palette generator →

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