#786197#786197

#786197 is a mid, moderate violet. Relative luminance 0.148; OKLCH L 53.7% C 0.086 H 303.2°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#786197
RGBrgb(120, 97, 151)
HSLhsl(266, 22%, 49%)
HSVhsv(266, 36%, 59%)
CMYKcmyk(20.5%, 35.8%, 0%, 40.8%)
CIE-LABlab(45.33, 20.68, -26.11)
CIE-LCHlch(45.33, 33.31, 308.37°)
OKLaboklab(53.69% 0.0473 -0.0722)
OKLCHoklch(53.69% 0.086 303.2)
XYZxyz(17.6052, 14.7768, 31.1969)
Luminance0.1478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786197 #809761
analogous
#616597 #786197 #936197
triadic
#786197 #977861 #619778
tetradic
#786197 #976165 #809761 #619793
square
#786197 #976165 #809761 #619793
split-complementary
#786197 #979361 #659761
monochromatic
#3D314C #5A4972 #786197 #9785B0 #B7AAC8

Accessibility & contrast

On white

5.31
#786197 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#786197 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786197
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786197#FFFFFF#000000##FFFFFF
##7861971.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#556B99
Deuteranopia (green-blind)
#5A6B95
Tritanopia (blue-blind)
#736975
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #786197;
/* rgb */ color: rgb(120, 97, 151);
/* oklch */ color: oklch(53.7% 0.086 303.2);
Tailwind
colors: {
  custom: {
    50: '#a08eb6',
    500: '#786197',
    950: '#000000',
  },
}
SCSS
$custom: #786197;
$custom-light: #a08eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#786197",
  "rgb": {
    "r": 120,
    "g": 97,
    "b": 151
  },
  "hsl": {
    "h": 265.556,
    "s": 21.774,
    "l": 48.627
  },
  "oklch": {
    "l": 0.53686,
    "c": 0.08632,
    "h": 303.2
  },
  "luminance": 0.14777
}

Semantic roles & 50–950 ramp

primary
#786197
secondary
#ACB79D
accent
#BE699A
background
#F9F8FB
surface
#F2F0F6
border
#CCCBD0
text
#0F0C11
muted
#7E7D80

Preview Lab

Preview with #786197

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

Preview Lab → · Contrast checker → · Palette generator →

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