#786397#786397

#786397 is a mid, moderate violet. Relative luminance 0.152; OKLCH L 54.1% C 0.083 H 302.3°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#786397
RGBrgb(120, 99, 151)
HSLhsl(264, 21%, 49%)
HSVhsv(264, 34%, 59%)
CMYKcmyk(20.5%, 34.4%, 0%, 40.8%)
CIE-LABlab(45.84, 19.47, -25.32)
CIE-LCHlch(45.84, 31.94, 307.56°)
OKLaboklab(54.08% 0.0442 -0.07)
OKLCHoklch(54.08% 0.083 302.3)
XYZxyz(17.7923, 15.1511, 31.2593)
Luminance0.1515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786397 #829763
analogous
#636897 #786397 #926397
triadic
#786397 #977863 #639778
tetradic
#786397 #976368 #829763 #639792
square
#786397 #976368 #829763 #639792
split-complementary
#786397 #979263 #689763
monochromatic
#3D334D #5B4B72 #786397 #9887B0 #B7ACC9

Accessibility & contrast

On white

5.21
#786397 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#786397 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786397
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786397#FFFFFF#000000##FFFFFF
##7863971.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#586C99
Deuteranopia (green-blind)
#5C6C96
Tritanopia (blue-blind)
#736B76
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #786397;
/* rgb */ color: rgb(120, 99, 151);
/* oklch */ color: oklch(54.1% 0.083 302.3);
Tailwind
colors: {
  custom: {
    50: '#a08fb5',
    500: '#786397',
    950: '#000000',
  },
}
SCSS
$custom: #786397;
$custom-light: #a08fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#786397",
  "rgb": {
    "r": 120,
    "g": 99,
    "b": 151
  },
  "hsl": {
    "h": 264.231,
    "s": 20.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.54077,
    "c": 0.08274,
    "h": 302.3
  },
  "luminance": 0.15151
}

Semantic roles & 50–950 ramp

primary
#786397
secondary
#ADB79F
accent
#BD6A9C
background
#F9F8FB
surface
#F2F0F6
border
#CCCBD0
text
#0F0C11
muted
#7E7D80

Preview Lab

Preview with #786397

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

Preview Lab → · Contrast checker → · Palette generator →

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