#796397#796397

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

Color values

HEX#796397
RGBrgb(121, 99, 151)
HSLhsl(265, 21%, 49%)
HSVhsv(265, 34%, 59%)
CMYKcmyk(19.9%, 34.4%, 0%, 40.8%)
CIE-LABlab(45.94, 19.79, -25.16)
CIE-LCHlch(45.94, 32.01, 308.20°)
OKLaboklab(54.18% 0.0454 -0.0695)
OKLCHoklch(54.18% 0.083 303.2)
XYZxyz(17.9318, 15.2230, 31.2658)
Luminance0.1522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796397 #819763
analogous
#636797 #796397 #936397
triadic
#796397 #977963 #639779
tetradic
#796397 #976367 #819763 #639793
square
#796397 #976367 #819763 #639793
split-complementary
#796397 #979363 #679763
monochromatic
#3E334D #5B4B72 #796397 #9887B0 #B8ACC9

Accessibility & contrast

On white

5.19
#796397 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#796397 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796397
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796397#FFFFFF#000000##FFFFFF
##7963971.005.194.045.19
#FFFFFF5.191.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #796397;
/* rgb */ color: rgb(121, 99, 151);
/* oklch */ color: oklch(54.2% 0.083 303.2);
Tailwind
colors: {
  custom: {
    50: '#a08fb5',
    500: '#796397',
    950: '#000000',
  },
}
SCSS
$custom: #796397;
$custom-light: #a08fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#796397",
  "rgb": {
    "r": 121,
    "g": 99,
    "b": 151
  },
  "hsl": {
    "h": 265.385,
    "s": 20.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.54175,
    "c": 0.08301,
    "h": 303.2
  },
  "luminance": 0.15223
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #796397

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

Preview Lab → · Contrast checker → · Palette generator →

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