#786FA7#786FA7

#786FA7 is a mid, moderate blue. Relative luminance 0.182; OKLCH L 57.2% C 0.086 H 290.8°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#786FA7
RGBrgb(120, 111, 167)
HSLhsl(250, 24%, 55%)
HSVhsv(250, 34%, 65%)
CMYKcmyk(28.1%, 33.5%, 0%, 34.5%)
CIE-LABlab(49.68, 16.28, -28.77)
CIE-LCHlch(49.68, 33.06, 299.50°)
OKLaboklab(57.25% 0.0304 -0.0799)
OKLCHoklch(57.25% 0.086 290.8)
XYZxyz(20.4035, 18.1516, 38.9804)
Luminance0.1815 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FA7 #9EA76F
analogous
#6F82A7 #786FA7 #946FA7
triadic
#786FA7 #A7786F #6FA778
tetradic
#786FA7 #A76F82 #9EA76F #6FA794
square
#786FA7 #A76F82 #9EA76F #6FA794
split-complementary
#786FA7 #A7946F #82A76F
monochromatic
#413B61 #5B5287 #786FA7 #9C95BE #BFBBD5

Accessibility & contrast

On white

4.54
#786FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#786FA7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FA7
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FA7#FFFFFF#000000##000000
##786FA71.004.544.634.63
#FFFFFF4.541.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6077A9
Deuteranopia (green-blind)
#6075A6
Tritanopia (blue-blind)
#6E7983
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #786fa7;
/* rgb */ color: rgb(120, 111, 167);
/* oklch */ color: oklch(57.2% 0.086 290.8);
Tailwind
colors: {
  custom: {
    50: '#a098c1',
    500: '#786fa7',
    950: '#000000',
  },
}
SCSS
$custom: #786fa7;
$custom-light: #a098c1;
$custom-dark: #000000;
JSON
{
  "hex": "#786fa7",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 167
  },
  "hsl": {
    "h": 249.643,
    "s": 24.138,
    "l": 54.51
  },
  "oklch": {
    "l": 0.57249,
    "c": 0.0855,
    "h": 290.8
  },
  "luminance": 0.18152
}

Semantic roles & 50–950 ramp

primary
#786FA7
secondary
#C1C5AD
accent
#C167B2
background
#F9F9FB
surface
#F2F2F7
border
#CCCCD0
text
#0F0D12
muted
#7E7E81

Preview Lab

Preview with #786FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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