#797DA5#797DA5

#797DA5 is a mid, moderate blue. Relative luminance 0.214; OKLCH L 60.1% C 0.061 H 279.9°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#797DA5
RGBrgb(121, 125, 165)
HSLhsl(235, 20%, 56%)
HSVhsv(235, 27%, 65%)
CMYKcmyk(26.7%, 24.2%, 0%, 35.3%)
CIE-LABlab(53.44, 7.74, -21.79)
CIE-LCHlch(53.44, 23.13, 289.55°)
OKLaboklab(60.14% 0.0105 -0.06)
OKLCHoklch(60.14% 0.061 279.9)
XYZxyz(22.0085, 21.4483, 38.5704)
Luminance0.2145 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DA5 #A5A179
analogous
#7993A5 #797DA5 #8B79A5
triadic
#797DA5 #A5797D #7DA579
tetradic
#797DA5 #A57993 #A5A179 #79A58B
square
#797DA5 #A57993 #A5A179 #79A58B
split-complementary
#797DA5 #A58B79 #93A579
monochromatic
#424562 #5A5E86 #797DA5 #9EA1BE #C2C4D6

Accessibility & contrast

On white

3.97
#797DA5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#797DA5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DA5
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DA5#FFFFFF#000000##000000
##797DA51.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#7281A7
Deuteranopia (green-blind)
#707EA4
Tritanopia (blue-blind)
#6E848B
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #797da5;
/* rgb */ color: rgb(121, 125, 165);
/* oklch */ color: oklch(60.1% 0.061 279.9);
Tailwind
colors: {
  custom: {
    50: '#a0a2bf',
    500: '#797da5',
    950: '#000000',
  },
}
SCSS
$custom: #797da5;
$custom-light: #a0a2bf;
$custom-dark: #000000;
JSON
{
  "hex": "#797da5",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 165
  },
  "hsl": {
    "h": 234.545,
    "s": 19.643,
    "l": 56.078
  },
  "oklch": {
    "l": 0.60144,
    "c": 0.06095,
    "h": 279.9
  },
  "luminance": 0.21449
}

Semantic roles & 50–950 ramp

primary
#797DA5
secondary
#C6C4B4
accent
#B56CBC
background
#F9F9FB
surface
#F2F2F7
border
#CCCCD0
text
#0F0F12
muted
#7E7E81

Preview Lab

Preview with #797DA5

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

Preview Lab → · Contrast checker → · Palette generator →

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