#786FA9#786FA9

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

Color values

HEX#786FA9
RGBrgb(120, 111, 169)
HSLhsl(249, 25%, 55%)
HSVhsv(249, 34%, 66%)
CMYKcmyk(29%, 34.3%, 0%, 33.7%)
CIE-LABlab(49.77, 16.80, -29.80)
CIE-LCHlch(49.77, 34.21, 299.42°)
OKLaboklab(57.35% 0.0309 -0.0829)
OKLCHoklch(57.35% 0.088 290.4)
XYZxyz(20.5898, 18.2261, 39.9616)
Luminance0.1823 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FA9 #A0A96F
analogous
#6F83A9 #786FA9 #956FA9
triadic
#786FA9 #A9786F #6FA978
tetradic
#786FA9 #A96F83 #A0A96F #6FA995
square
#786FA9 #A96F83 #A0A96F #6FA995
split-complementary
#786FA9 #A9956F #83A96F
monochromatic
#413B63 #5A5289 #786FA9 #9C95C0 #C0BCD7

Accessibility & contrast

On white

4.52
#786FA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#786FA9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FA9
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FA9#FFFFFF#000000##000000
##786FA91.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F77AB
Deuteranopia (green-blind)
#5F75A8
Tritanopia (blue-blind)
#6D7984
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #786fa9;
/* rgb */ color: rgb(120, 111, 169);
/* oklch */ color: oklch(57.3% 0.088 290.4);
Tailwind
colors: {
  custom: {
    50: '#a098c3',
    500: '#786fa9',
    950: '#000000',
  },
}
SCSS
$custom: #786fa9;
$custom-light: #a098c3;
$custom-dark: #000000;
JSON
{
  "hex": "#786fa9",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 169
  },
  "hsl": {
    "h": 249.31,
    "s": 25.217,
    "l": 54.902
  },
  "oklch": {
    "l": 0.57348,
    "c": 0.08844,
    "h": 290.4
  },
  "luminance": 0.18227
}

Semantic roles & 50–950 ramp

primary
#786FA9
secondary
#C2C6AE
accent
#C266B3
background
#F9F9FC
surface
#F2F2F8
border
#CCCCD1
text
#0F0D12
muted
#7E7E81

Preview Lab

Preview with #786FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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