#796997#796997

#796997 is a mid, moderate violet. Relative luminance 0.164; OKLCH L 55.4% C 0.072 H 300.0°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#796997
RGBrgb(121, 105, 151)
HSLhsl(261, 18%, 50%)
HSVhsv(261, 30%, 59%)
CMYKcmyk(19.9%, 30.5%, 0%, 40.8%)
CIE-LABlab(47.50, 16.18, -22.74)
CIE-LCHlch(47.50, 27.91, 305.43°)
OKLaboklab(55.37% 0.0362 -0.0626)
OKLCHoklch(55.37% 0.072 300)
XYZxyz(18.5215, 16.4024, 31.4624)
Luminance0.1640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796997 #879769
analogous
#697097 #796997 #906997
triadic
#796997 #977969 #699779
tetradic
#796997 #976970 #879769 #699790
square
#796997 #976970 #879769 #699790
split-complementary
#796997 #979069 #709769
monochromatic
#3F374F #5C5073 #796997 #998DB0 #BAB1C9

Accessibility & contrast

On white

4.91
#796997 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#796997 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796997
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796997#FFFFFF#000000##FFFFFF
##7969971.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F7199
Deuteranopia (green-blind)
#627096
Tritanopia (blue-blind)
#747079
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #796997;
/* rgb */ color: rgb(121, 105, 151);
/* oklch */ color: oklch(55.4% 0.072 300.0);
Tailwind
colors: {
  custom: {
    50: '#a094b5',
    500: '#796997',
    950: '#000000',
  },
}
SCSS
$custom: #796997;
$custom-light: #a094b5;
$custom-dark: #000000;
JSON
{
  "hex": "#796997",
  "rgb": {
    "r": 121,
    "g": 105,
    "b": 151
  },
  "hsl": {
    "h": 260.87,
    "s": 18.11,
    "l": 50.196
  },
  "oklch": {
    "l": 0.55369,
    "c": 0.07233,
    "h": 300
  },
  "luminance": 0.16402
}

Semantic roles & 50–950 ramp

primary
#796997
secondary
#B1B8A4
accent
#BB6DA0
background
#F9F9FB
surface
#F2F1F6
border
#CCCBD0
text
#0F0D11
muted
#7E7E80

Preview Lab

Preview with #796997

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

Preview Lab → · Contrast checker → · Palette generator →

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