#797EA5#797EA5

#797EA5 is a mid, muted blue. Relative luminance 0.217; OKLCH L 60.4% C 0.060 H 278.8°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#797EA5
RGBrgb(121, 126, 165)
HSLhsl(233, 20%, 56%)
HSVhsv(233, 27%, 65%)
CMYKcmyk(26.7%, 23.6%, 0%, 35.3%)
CIE-LABlab(53.71, 7.15, -21.37)
CIE-LCHlch(53.71, 22.54, 288.50°)
OKLaboklab(60.36% 0.0091 -0.0588)
OKLCHoklch(60.36% 0.06 278.8)
XYZxyz(22.1358, 21.7027, 38.6128)
Luminance0.2170 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EA5 #A5A079
analogous
#7994A5 #797EA5 #8A79A5
triadic
#797EA5 #A5797E #7EA579
tetradic
#797EA5 #A57994 #A5A079 #79A58A
square
#797EA5 #A57994 #A5A079 #79A58A
split-complementary
#797EA5 #A58A79 #94A579
monochromatic
#424562 #5A5F86 #797EA5 #9EA1BE #C2C4D6

Accessibility & contrast

On white

3.93
#797EA5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#797EA5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EA5
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EA5#FFFFFF#000000##000000
##797EA51.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7382A7
Deuteranopia (green-blind)
#717FA4
Tritanopia (blue-blind)
#6E858B
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #797ea5;
/* rgb */ color: rgb(121, 126, 165);
/* oklch */ color: oklch(60.4% 0.060 278.8);
Tailwind
colors: {
  custom: {
    50: '#a0a3bf',
    500: '#797ea5',
    950: '#000000',
  },
}
SCSS
$custom: #797ea5;
$custom-light: #a0a3bf;
$custom-dark: #000000;
JSON
{
  "hex": "#797ea5",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 165
  },
  "hsl": {
    "h": 233.182,
    "s": 19.643,
    "l": 56.078
  },
  "oklch": {
    "l": 0.60356,
    "c": 0.05954,
    "h": 278.8
  },
  "luminance": 0.21703
}

Semantic roles & 50–950 ramp

primary
#797EA5
secondary
#C6C4B4
accent
#B36CBC
background
#F9FAFB
surface
#F2F3F7
border
#CCCDD0
text
#0F0F12
muted
#7E7F81

Preview Lab

Preview with #797EA5

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

Preview Lab → · Contrast checker → · Palette generator →

#797EA5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva