#786B95#786B95

#786B95 is a mid, moderate violet. Relative luminance 0.167; OKLCH L 55.6% C 0.066 H 298.4°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#786B95
RGBrgb(120, 107, 149)
HSLhsl(259, 17%, 50%)
HSVhsv(259, 28%, 58%)
CMYKcmyk(19.5%, 28.2%, 0%, 41.6%)
CIE-LABlab(47.85, 14.16, -21.02)
CIE-LCHlch(47.85, 25.35, 303.96°)
OKLaboklab(55.59% 0.0313 -0.0578)
OKLCHoklch(55.59% 0.066 298.4)
XYZxyz(18.4271, 16.6783, 30.6764)
Luminance0.1668 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786B95 #88956B
analogous
#6B7395 #786B95 #8D6B95
triadic
#786B95 #95786B #6B9578
tetradic
#786B95 #956B73 #88956B #6B958D
square
#786B95 #956B73 #88956B #6B958D
split-complementary
#786B95 #958D6B #73956B
monochromatic
#3F384E #5B5172 #786B95 #998FAF #B9B2C8

Accessibility & contrast

On white

4.84
#786B95 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#786B95 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786B95
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786B95#FFFFFF#000000##FFFFFF
##786B951.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#627297
Deuteranopia (green-blind)
#647194
Tritanopia (blue-blind)
#73717A
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #786b95;
/* rgb */ color: rgb(120, 107, 149);
/* oklch */ color: oklch(55.6% 0.066 298.4);
Tailwind
colors: {
  custom: {
    50: '#9f95b4',
    500: '#786b95',
    950: '#000000',
  },
}
SCSS
$custom: #786b95;
$custom-light: #9f95b4;
$custom-dark: #000000;
JSON
{
  "hex": "#786b95",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 149
  },
  "hsl": {
    "h": 258.571,
    "s": 16.535,
    "l": 50.196
  },
  "oklch": {
    "l": 0.55592,
    "c": 0.0657,
    "h": 298.4
  },
  "luminance": 0.16678
}

Semantic roles & 50–950 ramp

primary
#786B95
secondary
#B1B7A5
accent
#B96FA2
background
#F9F9FB
surface
#F2F1F6
border
#CCCBD0
text
#0E0D11
muted
#7E7E80

Preview Lab

Preview with #786B95

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

Preview Lab → · Contrast checker → · Palette generator →

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