#786CCC#786CCC

#786CCC is a mid, vivid blue. Relative luminance 0.191; OKLCH L 58.7% C 0.143 H 286.8°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#786CCC
RGBrgb(120, 108, 204)
HSLhsl(248, 48%, 61%)
HSVhsv(248, 47%, 80%)
CMYKcmyk(41.2%, 47.1%, 0%, 20%)
CIE-LABlab(50.78, 28.22, -48.41)
CIE-LCHlch(50.78, 56.03, 300.24°)
OKLaboklab(58.69% 0.0415 -0.137)
OKLCHoklch(58.69% 0.143 286.8)
XYZxyz(24.0043, 19.0770, 59.5325)
Luminance0.1908 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CCC #C0CC6C
analogous
#6C90CC #786CCC #A86CCC
triadic
#786CCC #CC786C #6CCC78
tetradic
#786CCC #CC6C90 #C0CC6C #6CCCA8
square
#786CCC #CC6C90 #C0CC6C #6CCCA8
split-complementary
#786CCC #CCA86C #90CC6C
monochromatic
#3C318D #5041BA #786CCC #A299DC #CBC7EC

Accessibility & contrast

On white

4.36
#786CCC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#786CCC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CCC
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CCC#FFFFFF#000000##000000
##786CCC1.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#477BCF
Deuteranopia (green-blind)
#4676CA
Tritanopia (blue-blind)
#607F92
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #786ccc;
/* rgb */ color: rgb(120, 108, 204);
/* oklch */ color: oklch(58.7% 0.143 286.8);
Tailwind
colors: {
  custom: {
    50: '#a396dc',
    500: '#786ccc',
    950: '#000000',
  },
}
SCSS
$custom: #786ccc;
$custom-light: #a396dc;
$custom-dark: #000000;
JSON
{
  "hex": "#786ccc",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 204
  },
  "hsl": {
    "h": 247.5,
    "s": 48.485,
    "l": 61.176
  },
  "oklch": {
    "l": 0.58692,
    "c": 0.14315,
    "h": 286.8
  },
  "luminance": 0.19078
}

Semantic roles & 50–950 ramp

primary
#786CCC
secondary
#D7DCB8
accent
#BC2AAA
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #786CCC

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

Preview Lab → · Contrast checker → · Palette generator →

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