#797296#797296

#797296 is a mid, muted violet. Relative luminance 0.183; OKLCH L 57.2% C 0.055 H 293.5°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#797296
RGBrgb(121, 114, 150)
HSLhsl(252, 15%, 52%)
HSVhsv(252, 24%, 59%)
CMYKcmyk(19.3%, 24%, 0%, 41.2%)
CIE-LABlab(49.86, 10.54, -18.53)
CIE-LCHlch(49.86, 21.32, 299.65°)
OKLaboklab(57.18% 0.0221 -0.0507)
OKLCHoklch(57.18% 0.055 293.5)
XYZxyz(19.4063, 18.3014, 31.3584)
Luminance0.1830 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797296 #8F9672
analogous
#727D96 #797296 #8B7296
triadic
#797296 #967972 #729679
tetradic
#797296 #96727D #8F9672 #72968B
square
#797296 #96727D #8F9672 #72968B
split-complementary
#797296 #968B72 #7D9672
monochromatic
#403C51 #5C5774 #797296 #9A95B0 #BCB8CA

Accessibility & contrast

On white

4.51
#797296 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#797296 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797296
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797296#FFFFFF#000000##000000
##7972961.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A7798
Deuteranopia (green-blind)
#6A7695
Tritanopia (blue-blind)
#73787E
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #797296;
/* rgb */ color: rgb(121, 114, 150);
/* oklch */ color: oklch(57.2% 0.055 293.5);
Tailwind
colors: {
  custom: {
    50: '#a09ab5',
    500: '#797296',
    950: '#000000',
  },
}
SCSS
$custom: #797296;
$custom-light: #a09ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#797296",
  "rgb": {
    "r": 121,
    "g": 114,
    "b": 150
  },
  "hsl": {
    "h": 251.667,
    "s": 14.634,
    "l": 51.765
  },
  "oklch": {
    "l": 0.57176,
    "c": 0.05531,
    "h": 293.5
  },
  "luminance": 0.18302
}

Semantic roles & 50–950 ramp

primary
#797296
secondary
#B7BAAA
accent
#B770AA
background
#F9F9FB
surface
#F2F2F6
border
#CCCCD0
text
#0E0E11
muted
#7E7E80

Preview Lab

Preview with #797296

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

Preview Lab → · Contrast checker → · Palette generator →

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