#786FAF#786FAF

#786FAF is a mid, moderate blue. Relative luminance 0.185; OKLCH L 57.6% C 0.097 H 289.4°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#786FAF
RGBrgb(120, 111, 175)
HSLhsl(248, 29%, 56%)
HSVhsv(248, 37%, 69%)
CMYKcmyk(31.4%, 36.6%, 0%, 31.4%)
CIE-LABlab(50.05, 18.39, -32.86)
CIE-LCHlch(50.05, 37.65, 299.23°)
OKLaboklab(57.65% 0.0323 -0.0917)
OKLCHoklch(57.65% 0.097 289.4)
XYZxyz(21.1660, 18.4566, 42.9965)
Luminance0.1846 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FAF #A6AF6F
analogous
#6F86AF #786FAF #986FAF
triadic
#786FAF #AF786F #6FAF78
tetradic
#786FAF #AF6F86 #A6AF6F #6FAF98
square
#786FAF #AF6F86 #A6AF6F #6FAF98
split-complementary
#786FAF #AF986F #86AF6F
monochromatic
#413A69 #595091 #786FAF #9D96C5 #C2BEDB

Accessibility & contrast

On white

4.48
#786FAF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#786FAF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FAF
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FAF#FFFFFF#000000##000000
##786FAF1.004.484.694.69
#FFFFFF4.481.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C78B2
Deuteranopia (green-blind)
#5C76AD
Tritanopia (blue-blind)
#6B7B87
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #786faf;
/* rgb */ color: rgb(120, 111, 175);
/* oklch */ color: oklch(57.6% 0.097 289.4);
Tailwind
colors: {
  custom: {
    50: '#a198c7',
    500: '#786faf',
    950: '#000000',
  },
}
SCSS
$custom: #786faf;
$custom-light: #a198c7;
$custom-dark: #000000;
JSON
{
  "hex": "#786faf",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 175
  },
  "hsl": {
    "h": 248.438,
    "s": 28.571,
    "l": 56.078
  },
  "oklch": {
    "l": 0.5765,
    "c": 0.09725,
    "h": 289.4
  },
  "luminance": 0.18457
}

Semantic roles & 50–950 ramp

primary
#786FAF
secondary
#C6CAB0
accent
#C563B7
background
#FAF9FC
surface
#F3F2F8
border
#CDCCD1
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #786FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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