#786BB3#786BB3

#786BB3 is a mid, moderate violet. Relative luminance 0.178; OKLCH L 57.1% C 0.109 H 290.8°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#786BB3
RGBrgb(120, 107, 179)
HSLhsl(251, 32%, 56%)
HSVhsv(251, 40%, 70%)
CMYKcmyk(33%, 40.2%, 0%, 29.8%)
CIE-LABlab(49.21, 21.87, -36.50)
CIE-LCHlch(49.21, 42.55, 300.93°)
OKLaboklab(57.07% 0.0389 -0.1022)
OKLCHoklch(57.07% 0.109 290.8)
XYZxyz(21.1380, 17.7627, 44.9539)
Luminance0.1776 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BB3 #A6B36B
analogous
#6B82B3 #786BB3 #9C6BB3
triadic
#786BB3 #B3786B #6BB378
tetradic
#786BB3 #B36B82 #A6B36B #6BB39C
square
#786BB3 #B36B82 #A6B36B #6BB39C
split-complementary
#786BB3 #B39C6B #82B36B
monochromatic
#41386C #594C95 #786BB3 #9D93C8 #C2BCDD

Accessibility & contrast

On white

4.61
#786BB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#786BB3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #786BB3
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BB3#FFFFFF#000000##FFFFFF
##786BB31.004.614.554.61
#FFFFFF4.611.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5576B6
Deuteranopia (green-blind)
#5673B1
Tritanopia (blue-blind)
#6A7886
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #786bb3;
/* rgb */ color: rgb(120, 107, 179);
/* oklch */ color: oklch(57.1% 0.109 290.8);
Tailwind
colors: {
  custom: {
    50: '#a195ca',
    500: '#786bb3',
    950: '#000000',
  },
}
SCSS
$custom: #786bb3;
$custom-light: #a195ca;
$custom-dark: #000000;
JSON
{
  "hex": "#786bb3",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 179
  },
  "hsl": {
    "h": 250.833,
    "s": 32.143,
    "l": 56.078
  },
  "oklch": {
    "l": 0.57074,
    "c": 0.10938,
    "h": 290.8
  },
  "luminance": 0.17763
}

Semantic roles & 50–950 ramp

primary
#786BB3
secondary
#C6CCAE
accent
#C85FB5
background
#FAF9FC
surface
#F4F1F8
border
#CECBD1
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #786BB3

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

Preview Lab → · Contrast checker → · Palette generator →

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