#786FA8#786FA8

#786FA8 is a mid, moderate blue. Relative luminance 0.182; OKLCH L 57.3% C 0.087 H 290.6°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#786FA8
RGBrgb(120, 111, 168)
HSLhsl(249, 25%, 55%)
HSVhsv(249, 34%, 66%)
CMYKcmyk(28.6%, 33.9%, 0%, 34.1%)
CIE-LABlab(49.72, 16.54, -29.29)
CIE-LCHlch(49.72, 33.63, 299.46°)
OKLaboklab(57.3% 0.0306 -0.0814)
OKLCHoklch(57.3% 0.087 290.6)
XYZxyz(20.4963, 18.1887, 39.4691)
Luminance0.1819 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FA8 #9FA86F
analogous
#6F83A8 #786FA8 #956FA8
triadic
#786FA8 #A8786F #6FA878
tetradic
#786FA8 #A86F83 #9FA86F #6FA895
square
#786FA8 #A86F83 #9FA86F #6FA895
split-complementary
#786FA8 #A8956F #83A86F
monochromatic
#413B62 #5B5288 #786FA8 #9C95BF #C0BBD6

Accessibility & contrast

On white

4.53
#786FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#786FA8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FA8
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FA8#FFFFFF#000000##000000
##786FA81.004.534.644.64
#FFFFFF4.531.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6077AA
Deuteranopia (green-blind)
#6075A7
Tritanopia (blue-blind)
#6D7984
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #786fa8;
/* rgb */ color: rgb(120, 111, 168);
/* oklch */ color: oklch(57.3% 0.087 290.6);
Tailwind
colors: {
  custom: {
    50: '#a098c2',
    500: '#786fa8',
    950: '#000000',
  },
}
SCSS
$custom: #786fa8;
$custom-light: #a098c2;
$custom-dark: #000000;
JSON
{
  "hex": "#786fa8",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 168
  },
  "hsl": {
    "h": 249.474,
    "s": 24.675,
    "l": 54.706
  },
  "oklch": {
    "l": 0.57298,
    "c": 0.08697,
    "h": 290.6
  },
  "luminance": 0.18189
}

Semantic roles & 50–950 ramp

primary
#786FA8
secondary
#C2C5AD
accent
#C167B3
background
#F9F9FB
surface
#F2F2F7
border
#CCCCD0
text
#0F0D12
muted
#7E7E81

Preview Lab

Preview with #786FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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