#786CB4#786CB4

#786CB4 is a mid, moderate violet. Relative luminance 0.180; OKLCH L 57.3% C 0.109 H 290.2°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#786CB4
RGBrgb(120, 108, 180)
HSLhsl(250, 32%, 56%)
HSVhsv(250, 40%, 71%)
CMYKcmyk(33.3%, 40%, 0%, 29.4%)
CIE-LABlab(49.51, 21.54, -36.60)
CIE-LCHlch(49.51, 42.47, 300.47°)
OKLaboklab(57.32% 0.0377 -0.1025)
OKLCHoklch(57.32% 0.109 290.2)
XYZxyz(21.3444, 18.0130, 45.5235)
Luminance0.1801 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CB4 #A8B46C
analogous
#6C84B4 #786CB4 #9C6CB4
triadic
#786CB4 #B4786C #6CB478
tetradic
#786CB4 #B46C84 #A8B46C #6CB49C
square
#786CB4 #B46C84 #A8B46C #6CB49C
split-complementary
#786CB4 #B49C6C #84B46C
monochromatic
#41386E #594D96 #786CB4 #9D95C9 #C2BDDD

Accessibility & contrast

On white

4.56
#786CB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#786CB4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CB4
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CB4#FFFFFF#000000##000000
##786CB41.004.564.604.60
#FFFFFF4.561.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5677B7
Deuteranopia (green-blind)
#5674B2
Tritanopia (blue-blind)
#6A7987
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #786cb4;
/* rgb */ color: rgb(120, 108, 180);
/* oklch */ color: oklch(57.3% 0.109 290.2);
Tailwind
colors: {
  custom: {
    50: '#a196cb',
    500: '#786cb4',
    950: '#000000',
  },
}
SCSS
$custom: #786cb4;
$custom-light: #a196cb;
$custom-dark: #000000;
JSON
{
  "hex": "#786cb4",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 180
  },
  "hsl": {
    "h": 250,
    "s": 32.432,
    "l": 56.471
  },
  "oklch": {
    "l": 0.57322,
    "c": 0.10923,
    "h": 290.2
  },
  "luminance": 0.18013
}

Semantic roles & 50–950 ramp

primary
#786CB4
secondary
#C8CDAF
accent
#C95FB7
background
#FAF9FC
surface
#F4F2F8
border
#CECCD1
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #786CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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