#786BB4#786BB4

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

Color values

HEX#786BB4
RGBrgb(120, 107, 180)
HSLhsl(251, 33%, 56%)
HSVhsv(251, 41%, 71%)
CMYKcmyk(33.3%, 40.6%, 0%, 29.4%)
CIE-LABlab(49.26, 22.14, -37.00)
CIE-LCHlch(49.26, 43.12, 300.89°)
OKLaboklab(57.13% 0.0391 -0.1037)
OKLCHoklch(57.13% 0.111 290.6)
XYZxyz(21.2395, 17.8033, 45.4885)
Luminance0.1780 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BB4 #A7B46B
analogous
#6B83B4 #786BB4 #9D6BB4
triadic
#786BB4 #B4786B #6BB478
tetradic
#786BB4 #B46B83 #A7B46B #6BB49D
square
#786BB4 #B46B83 #A7B46B #6BB49D
split-complementary
#786BB4 #B49D6B #83B46B
monochromatic
#41376D #594C96 #786BB4 #9D94C9 #C2BCDD

Accessibility & contrast

On white

4.60
#786BB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#786BB4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #786BB4
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BB4#FFFFFF#000000##FFFFFF
##786BB41.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5576B7
Deuteranopia (green-blind)
#5574B2
Tritanopia (blue-blind)
#6A7887
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #786bb4;
/* rgb */ color: rgb(120, 107, 180);
/* oklch */ color: oklch(57.1% 0.111 290.6);
Tailwind
colors: {
  custom: {
    50: '#a195cb',
    500: '#786bb4',
    950: '#000000',
  },
}
SCSS
$custom: #786bb4;
$custom-light: #a195cb;
$custom-dark: #000000;
JSON
{
  "hex": "#786bb4",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 180
  },
  "hsl": {
    "h": 250.685,
    "s": 32.735,
    "l": 56.275
  },
  "oklch": {
    "l": 0.57128,
    "c": 0.11082,
    "h": 290.6
  },
  "luminance": 0.17804
}

Semantic roles & 50–950 ramp

primary
#786BB4
secondary
#C7CCAE
accent
#C95FB6
background
#FAF9FC
surface
#F4F1F8
border
#CECBD1
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #786BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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