#786CCB#786CCB

#786CCB is a mid, vivid blue. Relative luminance 0.190; OKLCH L 58.6% C 0.142 H 287.0°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#786CCB
RGBrgb(120, 108, 203)
HSLhsl(248, 48%, 61%)
HSVhsv(248, 47%, 80%)
CMYKcmyk(40.9%, 46.8%, 0%, 20.4%)
CIE-LABlab(50.72, 27.93, -47.93)
CIE-LCHlch(50.72, 55.47, 300.23°)
OKLaboklab(58.63% 0.0414 -0.1356)
OKLCHoklch(58.63% 0.142 287)
XYZxyz(23.8848, 19.0292, 58.9029)
Luminance0.1903 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CCB #BFCB6C
analogous
#6C8FCB #786CCB #A76CCB
triadic
#786CCB #CB786C #6CCB78
tetradic
#786CCB #CB6C8F #BFCB6C #6CCBA7
square
#786CCB #CB6C8F #BFCB6C #6CCBA7
split-complementary
#786CCB #CBA76C #8FCB6C
monochromatic
#3D318B #5041B9 #786CCB #A299DB #CBC6EB

Accessibility & contrast

On white

4.37
#786CCB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#786CCB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CCB
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CCB#FFFFFF#000000##000000
##786CCB1.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#487BCE
Deuteranopia (green-blind)
#4676C9
Tritanopia (blue-blind)
#607F92
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #786ccb;
/* rgb */ color: rgb(120, 108, 203);
/* oklch */ color: oklch(58.6% 0.142 287.0);
Tailwind
colors: {
  custom: {
    50: '#a396db',
    500: '#786ccb',
    950: '#000000',
  },
}
SCSS
$custom: #786ccb;
$custom-light: #a396db;
$custom-dark: #000000;
JSON
{
  "hex": "#786ccb",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 203
  },
  "hsl": {
    "h": 247.579,
    "s": 47.739,
    "l": 60.98
  },
  "oklch": {
    "l": 0.58632,
    "c": 0.14176,
    "h": 287
  },
  "luminance": 0.1903
}

Semantic roles & 50–950 ramp

primary
#786CCB
secondary
#D7DBB7
accent
#BB2AA9
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #786CCB

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

Preview Lab → · Contrast checker → · Palette generator →

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