#786FAA#786FAA

#786FAA is a mid, moderate blue. Relative luminance 0.183; OKLCH L 57.4% C 0.090 H 290.3°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#786FAA
RGBrgb(120, 111, 170)
HSLhsl(249, 26%, 55%)
HSVhsv(249, 35%, 67%)
CMYKcmyk(29.4%, 34.7%, 0%, 33.3%)
CIE-LABlab(49.81, 17.06, -30.31)
CIE-LCHlch(49.81, 34.78, 299.38°)
OKLaboklab(57.4% 0.0311 -0.0843)
OKLCHoklch(57.4% 0.09 290.3)
XYZxyz(20.6840, 18.2638, 40.4579)
Luminance0.1826 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FAA #A1AA6F
analogous
#6F83AA #786FAA #966FAA
triadic
#786FAA #AA786F #6FAA78
tetradic
#786FAA #AA6F83 #A1AA6F #6FAA96
square
#786FAA #AA6F83 #A1AA6F #6FAA96
split-complementary
#786FAA #AA966F #83AA6F
monochromatic
#413B64 #5A528A #786FAA #9C95C1 #C0BCD7

Accessibility & contrast

On white

4.51
#786FAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##786FAA#FFFFFF#000000##000000
##786FAA1.004.514.654.65
#FFFFFF4.511.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #786faa;
/* rgb */ color: rgb(120, 111, 170);
/* oklch */ color: oklch(57.4% 0.090 290.3);
Tailwind
colors: {
  custom: {
    50: '#a098c3',
    500: '#786faa',
    950: '#000000',
  },
}
SCSS
$custom: #786faa;
$custom-light: #a098c3;
$custom-dark: #000000;
JSON
{
  "hex": "#786faa",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 170
  },
  "hsl": {
    "h": 249.153,
    "s": 25.764,
    "l": 55.098
  },
  "oklch": {
    "l": 0.57397,
    "c": 0.08991,
    "h": 290.3
  },
  "luminance": 0.18264
}

Semantic roles & 50–950 ramp

primary
#786FAA
secondary
#C3C7AE
accent
#C266B4
background
#F9F9FC
surface
#F2F2F8
border
#CCCCD1
text
#0F0D12
muted
#7E7E81

Preview Lab

Preview with #786FAA

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

Preview Lab → · Contrast checker → · Palette generator →

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