#786286#786286

#786286 is a mid, moderate violet. Relative luminance 0.144; OKLCH L 53.1% C 0.061 H 312.0°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#786286
RGBrgb(120, 98, 134)
HSLhsl(277, 16%, 45%)
HSVhsv(277, 27%, 53%)
CMYKcmyk(10.4%, 26.9%, 0%, 47.5%)
CIE-LABlab(44.87, 16.07, -16.65)
CIE-LCHlch(44.87, 23.14, 313.98°)
OKLaboklab(53.1% 0.0408 -0.0454)
OKLCHoklch(53.1% 0.061 312)
XYZxyz(16.4158, 14.4499, 24.4739)
Luminance0.1445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786286 #708662
analogous
#666286 #786286 #866282
triadic
#786286 #867862 #628678
tetradic
#786286 #866662 #708662 #628286
square
#786286 #866662 #708662 #628286
split-complementary
#786286 #828662 #628666
monochromatic
#392E3F #584863 #786286 #9682A3 #B4A5BD

Accessibility & contrast

On white

5.40
#786286 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#786286 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786286
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786286#FFFFFF#000000##FFFFFF
##7862861.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D6987
Deuteranopia (green-blind)
#616B85
Tritanopia (blue-blind)
#77666F
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #786286;
/* rgb */ color: rgb(120, 98, 134);
/* oklch */ color: oklch(53.1% 0.061 312.0);
Tailwind
colors: {
  custom: {
    50: '#9f8ea9',
    500: '#786286',
    950: '#000000',
  },
}
SCSS
$custom: #786286;
$custom-light: #9f8ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#786286",
  "rgb": {
    "r": 120,
    "g": 98,
    "b": 134
  },
  "hsl": {
    "h": 276.667,
    "s": 15.517,
    "l": 45.49
  },
  "oklch": {
    "l": 0.53101,
    "c": 0.06101,
    "h": 312
  },
  "luminance": 0.1445
}

Semantic roles & 50–950 ramp

primary
#786286
secondary
#A0AC98
accent
#B8708C
background
#F9F8FA
surface
#F2F0F4
border
#CCCBCE
text
#0E0C0F
muted
#7E7D7F

Preview Lab

Preview with #786286

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

Preview Lab → · Contrast checker → · Palette generator →

#786286 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva