#786882#786882

#786882 is a mid, muted violet. Relative luminance 0.155; OKLCH L 54.2% C 0.044 H 312.4°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#786882
RGBrgb(120, 104, 130)
HSLhsl(277, 11%, 46%)
HSVhsv(277, 20%, 51%)
CMYKcmyk(7.7%, 20%, 0%, 49%)
CIE-LABlab(46.32, 11.57, -12.05)
CIE-LCHlch(46.32, 16.71, 313.82°)
OKLaboklab(54.17% 0.0297 -0.0326)
OKLCHoklch(54.17% 0.044 312.4)
XYZxyz(16.7246, 15.5056, 23.2266)
Luminance0.1550 (WCAG relative)
Temperatureneutral
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786882 #728268
analogous
#6B6882 #786882 #82687F
triadic
#786882 #827868 #688278
tetradic
#786882 #826B68 #728268 #687F82
square
#786882 #826B68 #728268 #687F82
split-complementary
#786882 #7F8268 #68826B
monochromatic
#39323E #594D60 #786882 #9688A0 #B4AABB

Accessibility & contrast

On white

5.12
#786882 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#786882 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786882
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786882#FFFFFF#000000##FFFFFF
##7868821.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#646D83
Deuteranopia (green-blind)
#686E81
Tritanopia (blue-blind)
#776B71
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #786882;
/* rgb */ color: rgb(120, 104, 130);
/* oklch */ color: oklch(54.2% 0.044 312.4);
Tailwind
colors: {
  custom: {
    50: '#9f93a6',
    500: '#786882',
    950: '#000000',
  },
}
SCSS
$custom: #786882;
$custom-light: #9f93a6;
$custom-dark: #000000;
JSON
{
  "hex": "#786882",
  "rgb": {
    "r": 120,
    "g": 104,
    "b": 130
  },
  "hsl": {
    "h": 276.923,
    "s": 11.111,
    "l": 45.882
  },
  "oklch": {
    "l": 0.54167,
    "c": 0.04411,
    "h": 312.4
  },
  "luminance": 0.15505
}

Semantic roles & 50–950 ramp

primary
#786882
secondary
#A1AA9C
accent
#B4748C
background
#F9F9FA
surface
#F2F1F4
border
#CCCBCE
text
#0E0D0F
muted
#7E7E7F

Preview Lab

Preview with #786882

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

Preview Lab → · Contrast checker → · Palette generator →

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