#786BB7#786BB7

#786BB7 is a mid, moderate violet. Relative luminance 0.179; OKLCH L 57.3% C 0.115 H 290.1°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#786BB7
RGBrgb(120, 107, 183)
HSLhsl(250, 35%, 57%)
HSVhsv(250, 42%, 72%)
CMYKcmyk(34.4%, 41.5%, 0%, 28.2%)
CIE-LABlab(49.41, 22.95, -38.50)
CIE-LCHlch(49.41, 44.83, 300.80°)
OKLaboklab(57.29% 0.0396 -0.1081)
OKLCHoklch(57.29% 0.115 290.1)
XYZxyz(21.5484, 17.9268, 47.1155)
Luminance0.1793 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BB7 #AAB76B
analogous
#6B84B7 #786BB7 #9E6BB7
triadic
#786BB7 #B7786B #6BB778
tetradic
#786BB7 #B76B84 #AAB76B #6BB79E
square
#786BB7 #B76B84 #AAB76B #6BB79E
split-complementary
#786BB7 #B79E6B #84B76B
monochromatic
#413771 #584B9A #786BB7 #9E94CB #C3BDDF

Accessibility & contrast

On white

4.58
#786BB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#786BB7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786BB7
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BB7#FFFFFF#000000##000000
##786BB71.004.584.594.59
#FFFFFF4.581.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5377BA
Deuteranopia (green-blind)
#5474B5
Tritanopia (blue-blind)
#697988
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #786bb7;
/* rgb */ color: rgb(120, 107, 183);
/* oklch */ color: oklch(57.3% 0.115 290.1);
Tailwind
colors: {
  custom: {
    50: '#a195cd',
    500: '#786bb7',
    950: '#000000',
  },
}
SCSS
$custom: #786bb7;
$custom-light: #a195cd;
$custom-dark: #000000;
JSON
{
  "hex": "#786bb7",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 183
  },
  "hsl": {
    "h": 250.263,
    "s": 34.545,
    "l": 56.863
  },
  "oklch": {
    "l": 0.57291,
    "c": 0.11511,
    "h": 290.1
  },
  "luminance": 0.17927
}

Semantic roles & 50–950 ramp

primary
#786BB7
secondary
#C9CEAF
accent
#CB5DB8
background
#FAF9FC
surface
#F4F1F9
border
#CECBD2
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #786BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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