#786FAB#786FAB

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

Color values

HEX#786FAB
RGBrgb(120, 111, 171)
HSLhsl(249, 26%, 55%)
HSVhsv(249, 35%, 67%)
CMYKcmyk(29.8%, 35.1%, 0%, 32.9%)
CIE-LABlab(49.86, 17.33, -30.82)
CIE-LCHlch(49.86, 35.36, 299.34°)
OKLaboklab(57.45% 0.0314 -0.0858)
OKLCHoklch(57.45% 0.091 290.1)
XYZxyz(20.7790, 18.3018, 40.9580)
Luminance0.1830 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FAB #A2AB6F
analogous
#6F84AB #786FAB #966FAB
triadic
#786FAB #AB786F #6FAB78
tetradic
#786FAB #AB6F84 #A2AB6F #6FAB96
square
#786FAB #AB6F84 #A2AB6F #6FAB96
split-complementary
#786FAB #AB966F #84AB6F
monochromatic
#413B65 #5A518B #786FAB #9C96C2 #C0BCD8

Accessibility & contrast

On white

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

On black

4.66
#786FAB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FAB
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FAB#FFFFFF#000000##000000
##786FAB1.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E78AD
Deuteranopia (green-blind)
#5E75A9
Tritanopia (blue-blind)
#6C7A85
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #786fab;
/* rgb */ color: rgb(120, 111, 171);
/* oklch */ color: oklch(57.4% 0.091 290.1);
Tailwind
colors: {
  custom: {
    50: '#a098c4',
    500: '#786fab',
    950: '#000000',
  },
}
SCSS
$custom: #786fab;
$custom-light: #a098c4;
$custom-dark: #000000;
JSON
{
  "hex": "#786fab",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 171
  },
  "hsl": {
    "h": 249,
    "s": 26.316,
    "l": 55.294
  },
  "oklch": {
    "l": 0.57447,
    "c": 0.09138,
    "h": 290.1
  },
  "luminance": 0.18302
}

Semantic roles & 50–950 ramp

primary
#786FAB
secondary
#C4C7AE
accent
#C365B5
background
#FAF9FC
surface
#F3F2F8
border
#CDCCD1
text
#0F0D12
muted
#7F7E81

Preview Lab

Preview with #786FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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