#797998#797998

#797998 is a mid, muted blue. Relative luminance 0.200; OKLCH L 58.7% C 0.047 H 284.9°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#797998
RGBrgb(121, 121, 152)
HSLhsl(240, 13%, 54%)
HSVhsv(240, 20%, 60%)
CMYKcmyk(20.4%, 20.4%, 0%, 40.4%)
CIE-LABlab(51.84, 6.88, -16.67)
CIE-LCHlch(51.84, 18.03, 292.42°)
OKLaboklab(58.74% 0.0121 -0.0456)
OKLCHoklch(58.74% 0.047 284.9)
XYZxyz(20.3887, 20.0064, 32.4871)
Luminance0.2001 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797998 #989879
analogous
#798898 #797998 #887998
triadic
#797998 #987979 #799879
tetradic
#797998 #987988 #989879 #799888
square
#797998 #987988 #989879 #799888
split-complementary
#797998 #988879 #889879
monochromatic
#414155 #5C5C78 #797998 #9C9CB3 #BEBECD

Accessibility & contrast

On white

4.20
#797998 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#797998 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797998
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797998#FFFFFF#000000##000000
##7979981.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#717D99
Deuteranopia (green-blind)
#707B97
Tritanopia (blue-blind)
#727E83
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #797998;
/* rgb */ color: rgb(121, 121, 152);
/* oklch */ color: oklch(58.7% 0.047 284.9);
Tailwind
colors: {
  custom: {
    50: '#a09fb6',
    500: '#797998',
    950: '#000000',
  },
}
SCSS
$custom: #797998;
$custom-light: #a09fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#797998",
  "rgb": {
    "r": 121,
    "g": 121,
    "b": 152
  },
  "hsl": {
    "h": 240,
    "s": 13.08,
    "l": 53.529
  },
  "oklch": {
    "l": 0.58742,
    "c": 0.04714,
    "h": 284.9
  },
  "luminance": 0.20007
}

Semantic roles & 50–950 ramp

primary
#797998
secondary
#BDBDB0
accent
#B672B6
background
#F9F9FB
surface
#F2F2F6
border
#CCCCD0
text
#0E0E11
muted
#7E7E80

Preview Lab

Preview with #797998

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

Preview Lab → · Contrast checker → · Palette generator →

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