#786BB5#786BB5

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

Color values

HEX#786BB5
RGBrgb(120, 107, 181)
HSLhsl(251, 33%, 56%)
HSVhsv(251, 41%, 71%)
CMYKcmyk(33.7%, 40.9%, 0%, 29%)
CIE-LABlab(49.31, 22.41, -37.50)
CIE-LCHlch(49.31, 43.69, 300.86°)
OKLaboklab(57.18% 0.0392 -0.1052)
OKLCHoklch(57.18% 0.112 290.5)
XYZxyz(21.3417, 17.8442, 46.0269)
Luminance0.1784 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BB5 #A8B56B
analogous
#6B83B5 #786BB5 #9D6BB5
triadic
#786BB5 #B5786B #6BB578
tetradic
#786BB5 #B56B83 #A8B56B #6BB59D
square
#786BB5 #B56B83 #A8B56B #6BB59D
split-complementary
#786BB5 #B59D6B #83B56B
monochromatic
#41376E #594C97 #786BB5 #9D94C9 #C2BDDE

Accessibility & contrast

On white

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

On black

4.57
#786BB5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##786BB5#FFFFFF#000000##FFFFFF
##786BB51.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5477B8
Deuteranopia (green-blind)
#5574B3
Tritanopia (blue-blind)
#697987
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #786bb5;
/* rgb */ color: rgb(120, 107, 181);
/* oklch */ color: oklch(57.2% 0.112 290.5);
Tailwind
colors: {
  custom: {
    50: '#a195cb',
    500: '#786bb5',
    950: '#000000',
  },
}
SCSS
$custom: #786bb5;
$custom-light: #a195cb;
$custom-dark: #000000;
JSON
{
  "hex": "#786bb5",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 181
  },
  "hsl": {
    "h": 250.541,
    "s": 33.333,
    "l": 56.471
  },
  "oklch": {
    "l": 0.57182,
    "c": 0.11225,
    "h": 290.5
  },
  "luminance": 0.17845
}

Semantic roles & 50–950 ramp

primary
#786BB5
secondary
#C8CDAF
accent
#C95EB7
background
#FAF9FC
surface
#F4F1F8
border
#CECBD1
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #786BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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